]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs.c: update ref_transaction_delete to check for error and return status
authorRonnie Sahlberg <sahlberg@google.com>
Wed, 16 Apr 2014 22:27:45 +0000 (15:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Sep 2014 17:04:08 +0000 (10:04 -0700)
commit8c8bdc0d3582e42c13815a191344b1aa3e06c792
tree8303c86ee46b8e76a2082f67fa275ec0149fde0e
parentb416af5bcdca3ac8426220f09efbfca2f1bec6e0
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c
refs.c
refs.h