summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-12-07 19:11:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-12-07 19:31:58 (GMT)
commit89d38fb26664038a85eb5a0da8fa4d23228e450d (patch)
tree73714c2903ad447134f8b1a5d09499d5998a9809 /builtin
parent8d7a455ed52e2a96debc080dfc011b6bb00db5d2 (diff)
downloadgit-89d38fb26664038a85eb5a0da8fa4d23228e450d.zip
git-89d38fb26664038a85eb5a0da8fa4d23228e450d.tar.gz
git-89d38fb26664038a85eb5a0da8fa4d23228e450d.tar.bz2
wt-status: implement opportunisitc index update correctly
The require_clean_work_tree() function calls hold_locked_index() with die_on_error=0 to signal that it is OK if it fails to obtain the lock, but unconditionally calls update_index_if_able(), which will try to write into fd=-1. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions