Retain caches of submodule refs
commit0e88c130f2f6309932464d4919725e54837978c7
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 12 Aug 2011 22:36:29 +0000 (13 00:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2011 22:18:52 +0000 (14 15:18 -0700)
tree05616c7bb272c4fe1c6ee4c94da763876644619c
parentce40979cf83c4c92421f9dd56cc4eabb67c85f29
Retain caches of submodule refs

Instead of keeping track of one cache for refs in the main repo and
another single cache shared among submodules, keep a linked list of
cached_refs objects, one for each module/submodule. Change
invalidate_cached_refs() to invalidate all caches. (Previously, it
only invalidated the cache of the main repo because the submodule
caches were not reused anyway.)

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c