]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
refs.c: make ref_update_reject_duplicates take a strbuf argument for errors
authorRonnie Sahlberg <sahlberg@google.com>
Fri, 20 Jun 2014 14:42:56 +0000 (07:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 18:54:42 +0000 (11:54 -0700)
commit038d005129467a514189e8cc1321022f71f6a51e
tree543f7641ce9b598d6035fd6a1001382e5ed33a31
parentdc615de8610c807633c63313937056bf45df0b8f
refs.c: make ref_update_reject_duplicates take a strbuf argument for errors

Make ref_update_reject_duplicates return any error that occurs through a
new strbuf argument. This means that when a transaction commit fails in
this function we will now be able to pass a helpful error message back to the
caller.

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>
refs.c