]> git.ipfire.org Git - thirdparty/git.git/commit
fsmonitor: skip lstat deletion check during git diff-index
authorNipunn Koorapati <nipunn@dropbox.com>
Wed, 17 Mar 2021 21:22:21 +0000 (21:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Mar 2021 20:31:11 +0000 (13:31 -0700)
commit4f3d6d026176a48991c4e5ff95c8db583af38148
tree119a96236731fba661b8ee962f215ef7963e8510
parenta5828ae6b52137b913b978e16cd2334482eb4c1f
fsmonitor: skip lstat deletion check during git diff-index

Teach git to honor fsmonitor rather than issuing an lstat
when checking for dirty local deletes. Eliminates O(files)
lstats during `git diff HEAD`

Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c