summaryrefslogtreecommitdiff
path: root/fsck.h
diff options
context:
space:
mode:
authorLibravatar Alex Vandiver <alexmv@dropbox.com>2020-10-20 13:40:58 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-10-20 12:52:21 -0700
commitc9052a8392878d9e38381db5d2172f7f8f7272a3 (patch)
tree6b963049a194fe573d712e33709a17e57ecd4c70 /fsck.h
parentMerge https://github.com/prati0100/git-gui (diff)
downloadtgif-c9052a8392878d9e38381db5d2172f7f8f7272a3.tar.xz
fsmonitor: use fsmonitor data in `git diff`
With fsmonitor enabled, the first call to match_stat_with_submodule calls refresh_fsmonitor, incurring the overhead of reading the list of updated files -- but run_diff_files does not respect the CE_FSMONITOR_VALID flag. Make use of the fsmonitor extension to skip lstat() calls on files that fsmonitor judged as unmodified. Notably, this change improves performance of the git shell prompt when GIT_PS1_SHOWDIRTYSTATE is set. Signed-off-by: Alex Vandiver <alexmv@dropbox.com> Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.h')
0 files changed, 0 insertions, 0 deletions