summaryrefslogtreecommitdiff
path: root/xdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-03-30 16:25:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-04-13 02:42:17 (GMT)
commite06c43c7959042e5612984b8193700f32f12b2be (patch)
tree46a8843e5c9ac6bef72fe40ca80b9a365675913e /xdiff
parentf43e2fd43b50d5a82a34bb3e4f848cb38bf93b7f (diff)
downloadgit-e06c43c7959042e5612984b8193700f32f12b2be.zip
git-e06c43c7959042e5612984b8193700f32f12b2be.tar.gz
git-e06c43c7959042e5612984b8193700f32f12b2be.tar.bz2
write_index(): optimize ce_smudge_racily_clean_entry() calls with CE_UPTODATE
When writing the index out, we need to check the work tree again to see if an entry whose timestamp indicates that it could be "racily clean", in order to smudge it if it is stat-clean but with modified contents. However, we can skip this step for entries marked with CE_UPTODATE, which are known to be the really clean (i.e. the one we already have checked when we prepared the index). This will reduce lstat(2) calls necessary in git-status. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff')
0 files changed, 0 insertions, 0 deletions