refs.c: add an err argument to delete_ref_loose
commit89818594e6eb1d3e0b3a262da462a46476ef46e2
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 16 Jul 2014 22:23:03 +0000 (16 15:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2014 20:01:00 +0000 (17 13:01 -0700)
tree0276863fbe88222af82fc9900c3bf6ca34953e30
parentea7710a4a50eb2c357182da8d14447f8e594fd39
refs.c: add an err argument to delete_ref_loose

Add an err argument to delete_loose_ref so that we can pass a descriptive
error string back to the caller. Pass the err argument from transaction
commit to this function so that transaction users will have a nice error
string if the transaction failed due to delete_loose_ref.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c