author | Linus Torvalds <torvalds@woody.linux-foundation.org> | |
Fri, 21 Mar 2008 22:53:00 +0000 (15:53 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Apr 2008 08:22:25 +0000 (01:22 -0700) | ||
commit | df292c791ab790340cc9e3577a073bcb9d1900ea | |
tree | d3f1995f5d8c7c46779bd071703eb8ea6a46e3ed | tree | snapshot |
parent | 96872bc200c41407607019c1f0fb005840f576a2 | commit | diff |
Make "index_name_exists()" return the cache_entry it found
This allows verify_absent() in unpack_trees() to use the hash chains
rather than looking it up using the binary search.
Perhaps more importantly, it's also going to be useful for the next phase,
where we actually start looking at the cache entry when we do
case-insensitive lookups and checking the result.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This allows verify_absent() in unpack_trees() to use the hash chains
rather than looking it up using the binary search.
Perhaps more importantly, it's also going to be useful for the next phase,
where we actually start looking at the cache entry when we do
case-insensitive lookups and checking the result.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
name-hash.c | diff | blob | history | |
unpack-trees.c | diff | blob | history |