refs.c: update ref_transaction_delete to check for error and return status
commita09cd1e5723f4e5c94c7360f7c759a35cd5a4944
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 16 Apr 2014 22:27:45 +0000 (16 15:27 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Tue, 2 Sep 2014 19:16:15 +0000 (2 12:16 -0700)
tree8303c86ee46b8e76a2082f67fa275ec0149fde0e
parenta91f51760400eafb2075d3ea78b62c2a62d98732
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 on 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.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
builtin/update-ref.c
refs.c
refs.h