aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-30 17:12:58 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-30 17:49:50 -0700
commit0781b8a9b2fe760fc4ed519a3a26e4b9bd6ccffe (patch)
tree5698aa2ab33ca555cca63072fcd881b4fad82e13 /t
parentbf655fd7009bf5b8f493c52ca77c0d9e09dcb762 (diff)
downloadgit-0781b8a9b2fe760fc4ed519a3a26e4b9bd6ccffe.tar.gz
git-0781b8a9b2fe760fc4ed519a3a26e4b9bd6ccffe.tar.xz
add_file_to_index: skip rehashing if the cached stat already matches
An earlier commit 366bfcb6 broke git-add by moving read_cache() call down, because it wanted the directory walking code to grab paths that are already in the index. The change serves its purpose, but introduces a regression because the responsibility of avoiding unnecessary reindexing by matching the cached stat is shifted nowhere. This makes it the job of add_file_to_index() function. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions