refs.c: remove the onerr argument to ref_transaction_commit
Since all callers now use QUIET_ON_ERR we no longer need to provide an onerr argument any more. Remove the onerr argument from the ref_transaction_commit signature. 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>
This commit is contained in:

committed by
Junio C Hamano

parent
8bcd37482e
commit
01319837c5
@ -366,8 +366,7 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
|
||||
if (end_null)
|
||||
line_termination = '\0';
|
||||
update_refs_stdin();
|
||||
if (ref_transaction_commit(transaction, msg, &err,
|
||||
UPDATE_REFS_QUIET_ON_ERR))
|
||||
if (ref_transaction_commit(transaction, msg, &err))
|
||||
die("%s", err.buf);
|
||||
ref_transaction_free(transaction);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user