refs.c: make delete_ref use a transaction
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 30 Apr 2014 16:22:45 +0000 (09:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 17:04:18 +0000 (10:04 -0700)
commit7521cc4611a783f4a8174bd0fcec5f4a47357ac1
treef7899864eb68c59e00240aae505ad2d220184594
parent029cdb4ab21c49a916efd68eaf2d2431c7fab7c7
refs.c: make delete_ref use a transaction

Change delete_ref to use a ref transaction for the deletion. At the same time
since we no longer have any callers of repack_without_ref we can now delete
this function.

Change delete_ref to return 0 on success and 1 on failure instead of the
previous 0 on success either 1 or -1 on failure.

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