summaryrefslogtreecommitdiff
path: root/ls-files.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-19 21:49:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-20 22:07:53 (GMT)
commit1991b223c05d45d2a915842990b2a7c4819dcbcf (patch)
tree341f43cab4c91c279e8adb995ac77c61fadf7f98 /ls-files.c
parente9bacb4f6a6f0aae7270acb257977f9ee0bbd6db (diff)
downloadgit-1991b223c05d45d2a915842990b2a7c4819dcbcf.zip
git-1991b223c05d45d2a915842990b2a7c4819dcbcf.tar.gz
git-1991b223c05d45d2a915842990b2a7c4819dcbcf.tar.bz2
Fast-path 'update-index --refresh' a bit.
If the length in the stat information does not match what is recorded in the index, there is no point rehashing the contents to see if the index entry can be refreshed. We need to be a bit careful. Immediately after read-tree or checkout-index without -u, ce_size is set to zero and does not match the length of the blob that is recorded, and we need to actually look at the contents to see if it has been changed. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'ls-files.c')
0 files changed, 0 insertions, 0 deletions