From: Junio C Hamano Date: Wed, 12 Oct 2011 19:14:13 GMT Subject: Re: [PATCH v3 1/7] invalidate_ref_cache(): rename function from invalidate_cached_refs() Message-ID: <7v1uui9g56.fsf@alter.siamese.dyndns.org> In-Reply-To: <1318445067-19279-2-git-send-email-mhagger@alum.mit.edu> Michael Haggerty writes: > It is the cache that is being invalidated, not the references. > > Signed-off-by: Michael Haggerty > --- > diff --git a/refs.c b/refs.c > index 9911c97..120b8e4 100644 > --- a/refs.c > +++ b/refs.c > @@ -202,7 +202,7 @@ static struct cached_refs *get_cached_refs(const char *submodule) > return refs; > } > > -static void invalidate_cached_refs(void) > +static void invalidate_ref_cache(void) > { > struct cached_refs *refs = cached_refs; > while (refs) { If you call the operation "invalidate ref_cache", shouldn't the data structure that holds that cache also be renamed to "struct ref_cache" from "struct "cached_refs" at the same time?