]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs.c: make prune_ref use a transaction to delete the ref
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 30 Apr 2014 16:03:36 +0000 (09:03 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 17:04:18 +0000 (10:04 -0700)
commit029cdb4ab21c49a916efd68eaf2d2431c7fab7c7
tree29082e54c8188c97df156d250cd2b1cd6d364081
parentcba12021c3c932e42de838d0fc05d60b93790599
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h