Make read-cache.c "the_index" free.
commit4aab5b46f44a7ba860e07a52be506b7b57b2bd5f
authorJunio C Hamano <junkio@cox.net>
Mon, 2 Apr 2007 06:26:07 +0000 (1 23:26 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 23 Apr 2007 05:53:54 +0000 (22 22:53 -0700)
tree7096edf9a3f1d61fc9d193f3482dca34558f5405
parent228e94f93570b580da388069900c56b813c91953
Make read-cache.c "the_index" free.

This makes all low-level functions defined in read-cache.c to
take an explicit index_state structure as their first parameter,
to specify which index to work on.  These functions
traditionally operated on "the_index" and were named foo_cache();
the counterparts this patch introduces are called foo_index().

The traditional foo_cache() functions are made into macros that
give "the_index" to their corresponding foo_index() functions.

Signed-off-by: Junio C Hamano <junkio@cox.net>
cache.h
read-cache.c