Re: [PATCH 12/12] refs: do not invalidate the packed-refs cache unnecessarily

2013-06-12 Thread Jeff King
On Tue, Jun 11, 2013 at 11:48:32PM +0200, Michael Haggerty wrote: > Now that we keep track of the packed-refs file metadata, we can detect > when the packed-refs file has been modified since we last read it, and > we do so automatically every time that get_packed_ref_cache() is > called. So there

[PATCH 12/12] refs: do not invalidate the packed-refs cache unnecessarily

2013-06-11 Thread Michael Haggerty
Now that we keep track of the packed-refs file metadata, we can detect when the packed-refs file has been modified since we last read it, and we do so automatically every time that get_packed_ref_cache() is called. So there is no need to invalidate the cache automatically when lock_packed_refs() i