[PATCH 0/2] Provide API to invalidate refs cache
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Oct 10, 2011, 05:46 UTC
- Message-ID
- <1318225574-18785-1-git-send-email-mhagger@alum.mit.edu>
- In-Reply-To
- <7v39f2rko5.fsf@alter.siamese.dyndns.org>
I am happy to provide the API; see the following patches.
But I won't have time to figure out who, outside of refs.c, has to *call* invalidate_cached_refs(). The candidates that I know off the top of my head are git-clone, git-submodule, and git-pack-refs. It would be great if experts in those areas would insert calls to invalidate_cached_refs() where needed.
Even better would be if the meddlesome code were changed to use the refs API. I'd be happy to help expanding the refs API if needed to accommodate your needs.
Michael Haggerty (2): invalidate_cached_refs(): take the submodule as parameter invalidate_cached_refs(): expose this function in refs API
refs.c | 12 ++++-------- refs.h | 8 ++++++++ 2 files changed, 12 insertions(+), 8 deletions(-)
-- 1.7.7.rc2