refs.c: change ref_transaction_create to do error checking and return status
commit0c202053f0fbfed12ee2f55aac8e63bc135b8516
authorRonnie Sahlberg <sahlberg@google.com>
Tue, 15 Jul 2014 23:33:59 +0000 (15 16:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jul 2014 20:46:42 +0000 (16 13:46 -0700)
tree6a400b374ec600c38bdf039443a788f75720d147
parent8e34800e5bce1dc6f1ab5520a4c866a2a73639de
refs.c: change ref_transaction_create to do error checking and return status

Do basic error checking in ref_transaction_create() and make it return
non-zero on error. Update all callers to check the result of
ref_transaction_create(). There are currently no conditions in _create 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