summaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorKjetil Barvik <barvik@broadpark.no>2009-02-19 21:08:30 +0100
committerJunio C Hamano <gitster@pobox.com>2009-02-20 06:39:51 +0100
commit1dcafcc0e639ecc69b54421bda5f2270ed2601eb (patch)
tree39f5d9a0a493ebd19c04fb008533741e9924b4e9 /read-cache.c
parentmake USE_NSEC work as expected (diff)
downloadgit-1dcafcc0e639ecc69b54421bda5f2270ed2601eb.tar.xz
git-1dcafcc0e639ecc69b54421bda5f2270ed2601eb.zip
verify_uptodate(): add ce_uptodate(ce) test
If we inside verify_uptodate() can already tell from the ce entry that it is already uptodate by testing it with ce_uptodate(ce), there is no need to call lstat(2) and ie_match_stat() afterwards. And, reading from the commit log message from: commit eadb5831342bb2e756fa05c03642c4aa1929d4f5 Author: Junio C Hamano <gitster@pobox.com> Date: Fri Jan 18 23:45:24 2008 -0800 Avoid running lstat(2) on the same cache entry. this also seems to be correct usage of the ce_uptodate() macro introduced by that patch. This will avoid lots of lstat(2) calls in some cases, for example by running the 'git checkout' command. Signed-off-by: Kjetil Barvik <barvik@broadpark.no> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions