diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-04-30 18:22:45 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-09-03 19:04:18 +0200 |
commit | 7521cc4611a783f4a8174bd0fcec5f4a47357ac1 (patch) | |
tree | f7899864eb68c59e00240aae505ad2d220184594 /setup.c | |
parent | refs.c: make prune_ref use a transaction to delete the ref (diff) | |
download | git-7521cc4611a783f4a8174bd0fcec5f4a47357ac1.tar.xz git-7521cc4611a783f4a8174bd0fcec5f4a47357ac1.zip |
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>
Diffstat (limited to 'setup.c')
0 files changed, 0 insertions, 0 deletions