refs.c: make prune_ref use a transaction to delete the ref
commit368c59551c91b4947fa437d840fcc9b7083b85bd
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 30 Apr 2014 16:03:36 +0000 (30 09:03 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 2 Sep 2014 20:46:06 +0000 (2 13:46 -0700)
tree29082e54c8188c97df156d250cd2b1cd6d364081
parent558929fc8022523cfb099005a048bde883220a5d
refs.c: make prune_ref use a transaction to delete the ref

Change prune_ref to delete the ref using a ref transaction. To do this we also
need to add a new flag REF_ISPRUNING that will tell the transaction that we
do not want to delete this ref from the packed refs. This flag is private to
refs.c and not exposed to external callers.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
refs.c
refs.h