refs.c: update ref_transaction_delete to check for error and return status
commitad9dbaa15a4aaba871426775c4ea697c8f6882ed
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 15 Jul 2014 23:34:00 +0000 (15 16:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jul 2014 20:46:42 +0000 (16 13:46 -0700)
tree8303c86ee46b8e76a2082f67fa275ec0149fde0e
parent0c202053f0fbfed12ee2f55aac8e63bc135b8516
refs.c: update ref_transaction_delete to check for error and return status

Change ref_transaction_delete() to do basic error checking and return
non-zero of error. Update all callers to check the return for
ref_transaction_delete(). There are currently no conditions in _delete that
will return error but there will be in the future. Add an err argument that
will be updated on failure.

Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c
refs.c
refs.h