From 8be8bde75f90661ecd118ac890290889e184063d Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Mon, 17 Oct 2011 04:38:07 +0200 Subject: invalidate_ref_cache(): expose this function in the refs API Make invalidate_ref_cache() an official part of the refs API. It is currently a fact of life that code outside of refs.c mucks about with references. This change gives such code a way of informing the refs module that it should no longer trust its cache. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'refs.c') diff --git a/refs.c b/refs.c index 68b73aa14..ddd799e65 100644 --- a/refs.c +++ b/refs.c @@ -202,7 +202,7 @@ static struct ref_cache *get_ref_cache(const char *submodule) return refs; } -static void invalidate_ref_cache(const char *submodule) +void invalidate_ref_cache(const char *submodule) { clear_ref_cache(get_ref_cache(submodule)); } -- cgit v1.2.1