diff options
author | Alex Vandiver <alexmv@dropbox.com> | 2020-10-20 13:40:58 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-20 12:52:21 -0700 |
commit | c9052a8392878d9e38381db5d2172f7f8f7272a3 (patch) | |
tree | 6b963049a194fe573d712e33709a17e57ecd4c70 /Documentation/git-range-diff.txt | |
parent | Merge https://github.com/prati0100/git-gui (diff) | |
download | tgif-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 'Documentation/git-range-diff.txt')
0 files changed, 0 insertions, 0 deletions