diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-18 06:15:10 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-20 11:38:18 -0700 |
commit | c5f04dddb6cf5f76adfe145de3565411711255b8 (patch) | |
tree | 99851bcc88f8d5fcb688d1805c2177c3a6766aa0 /builtin/remote.c | |
parent | 4633a846f5cf085bc11de702d0e78177aa44a907 (diff) | |
download | git-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.gz |
delete_refs(): add a flags argument
This will be useful for passing REF_NODEREF through.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r-- | builtin/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index fda5c2e53d..1bbf9b44df 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -788,7 +788,7 @@ static int rm(int argc, const char **argv) strbuf_release(&buf); if (!result) - result = delete_refs(&branches); + result = delete_refs(&branches, 0); string_list_clear(&branches, 0); if (skipped.nr) { @@ -1303,7 +1303,7 @@ static int prune_remote(const char *remote, int dry_run) string_list_sort(&refs_to_prune); if (!dry_run) - result |= delete_refs(&refs_to_prune); + result |= delete_refs(&refs_to_prune, 0); for_each_string_list_item(item, &states.stale) { const char *refname = item->util; |