diff options
author | Ronnie Sahlberg <sahlberg@google.com> | 2014-06-20 07:42:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-14 11:54:41 -0700 |
commit | 60bca085c893f1866829b55bfee63888943cfe14 (patch) | |
tree | 8da8f6f6eb32f72380035e6e14f369dd4d82c57d /refs.h | |
parent | 447ff1bf0acf9a1d7d2dc3aed032c209f105fb8a (diff) | |
download | git-60bca085c893f1866829b55bfee63888943cfe14.tar.gz |
refs.c: add an err argument to repack_without_refs
Update repack_without_refs to take an err argument and update it if there
is a failure. Pass the err variable from ref_transaction_commit to this
function so that callers can print a meaningful error message if _commit
fails due to this function.
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 'refs.h')
-rw-r--r-- | refs.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -122,7 +122,8 @@ extern void rollback_packed_refs(void); */ int pack_refs(unsigned int flags); -extern int repack_without_refs(const char **refnames, int n); +extern int repack_without_refs(const char **refnames, int n, + struct strbuf *err); extern int ref_exists(const char *); |