diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-12 13:48:37 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-12 13:48:37 -0700 |
commit | 1f490abb3f643641e7cb5cd782769f3a5ce1523c (patch) | |
tree | c082a1af33794f8ccdc3338d221e81fa5f945980 | |
parent | ec9db93768bdb5d8bc1b5f27fa6650fa5bbb961a (diff) | |
download | git-rs/ref-transactions.tar.gz |
SQUASH for interaction with jl/remote-rm-pruners/ref-transactions
-rw-r--r-- | builtin/remote.c | 4 | ||||
-rw-r--r-- | refs.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index c9102e8fe9..419eb3a595 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -755,7 +755,7 @@ static int remove_branches(struct string_list *branches) branch_names = xmalloc(branches->nr * sizeof(*branch_names)); for (i = 0; i < branches->nr; i++) branch_names[i] = branches->items[i].string; - result |= repack_without_refs(branch_names, branches->nr); + result |= repack_without_refs(branch_names, branches->nr, NULL); free(branch_names); for (i = 0; i < branches->nr; i++) { @@ -1333,7 +1333,7 @@ static int prune_remote(const char *remote, int dry_run) for (i = 0; i < states.stale.nr; i++) delete_refs[i] = states.stale.items[i].util; if (!dry_run) - result |= repack_without_refs(delete_refs, states.stale.nr); + result |= repack_without_refs(delete_refs, states.stale.nr, NULL); free(delete_refs); } @@ -162,7 +162,7 @@ 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 *); |