]> git.ipfire.org Git - thirdparty/git.git/commit - cache.h
Make "cache_name_pos()" available to others.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 9 Apr 2005 16:26:55 +0000 (09:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 9 Apr 2005 16:26:55 +0000 (09:26 -0700)
commiteb38c22f535c7c973f27b62845c5136c4be0ae49
treedd229923a70e17998038996d66d4562df16f6d28
parent59c1e249808c6ba38194733fa00efddb9e0eb488
Make "cache_name_pos()" available to others.

It finds the cache entry position for a given name, and is
generally useful. Sure, everybody can just scan the active
cache array, but since it's sorted, you actually want to
search it with a binary search, so let's not duplicate that
logic all over the place.
cache.h
read-cache.c
update-cache.c