Code

Make "index_name_exists()" return the cache_entry it found
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 21 Mar 2008 22:53:00 +0000 (15:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Apr 2008 08:22:25 +0000 (01:22 -0700)
commitdf292c791ab790340cc9e3577a073bcb9d1900ea
treed3f1995f5d8c7c46779bd071703eb8ea6a46e3ed
parent96872bc200c41407607019c1f0fb005840f576a2
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>
cache.h
name-hash.c
unpack-trees.c