]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs: wrap the packed refs cache in a level of indirection
authorMichael Haggerty <mhagger@alum.mit.edu>
Thu, 20 Jun 2013 08:37:45 +0000 (10:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2013 22:50:17 +0000 (15:50 -0700)
commit2fff7812902abd0afe05ae1e9ef334fcd26f0389
treebd1883d6d6a660e2c5768867e7e65ec44b7b6cb7
parent267f9a8cc8192e120a6476fc55590e288e08b459
refs: wrap the packed refs cache in a level of indirection

As we know, we can solve any problem in this manner.  In this case,
the problem is to avoid freeing a packed refs cache while somebody is
using it.  So add a level of indirection as a prelude to
reference-counting the packed refs cache.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c