summaryrefslogtreecommitdiff
path: root/builtin/update-ref.c
diff options
context:
space:
mode:
authorLibravatar Ronnie Sahlberg <sahlberg@google.com>2014-06-20 07:42:57 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-14 11:54:42 -0700
commitc1703d7634a61b4d08d77fa0d9ca7e7ad92c3cb8 (patch)
tree1847c07108a6cc12a736aa349680362ca58252ac /builtin/update-ref.c
parentrefs.c: make ref_update_reject_duplicates take a strbuf argument for errors (diff)
downloadtgif-c1703d7634a61b4d08d77fa0d9ca7e7ad92c3cb8.tar.xz
refs.c: make update_ref_write update a strbuf on failure
Change update_ref_write to also update an error strbuf on failure. This makes the error available to ref_transaction_commit callers if the transaction failed due to update_ref_sha1/write_ref_sha1 failures. Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Ronnie Sahlberg <sahlberg@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'builtin/update-ref.c')
0 files changed, 0 insertions, 0 deletions