author | Michael Haggerty <mhagger@alum.mit.edu> | |
Fri, 12 Aug 2011 22:36:29 +0000 (00:36 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Aug 2011 22:18:52 +0000 (15:18 -0700) | ||
commit | 0e88c130f2f6309932464d4919725e54837978c7 | |
tree | 05616c7bb272c4fe1c6ee4c94da763876644619c | tree | snapshot |
parent | ce40979cf83c4c92421f9dd56cc4eabb67c85f29 | commit | diff |
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>
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 | diff | blob | history |