diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-06-20 07:42:59 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-14 11:54:42 -0700 |
commit | 01319837c53050109c60e6740dfa9462327161f0 (patch) | |
tree | 0696aad84da0bbf6b26349fe401ef95a851515d6 /builtin | |
parent | update-ref: use err argument to get error from ref_transaction_commit (diff) | |
download | tgif-01319837c53050109c60e6740dfa9462327161f0.tar.xz |
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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/update-ref.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/update-ref.c b/builtin/update-ref.c index aec9004207..88ab785ea0 100644 --- a/builtin/update-ref.c +++ b/builtin/update-ref.c @@ -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; |