summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-06-18 04:15:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-20 18:38:18 (GMT)
commitc5f04dddb6cf5f76adfe145de3565411711255b8 (patch)
tree99851bcc88f8d5fcb688d1805c2177c3a6766aa0 /builtin/remote.c
parent4633a846f5cf085bc11de702d0e78177aa44a907 (diff)
downloadgit-c5f04dddb6cf5f76adfe145de3565411711255b8.zip
git-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.gz
git-c5f04dddb6cf5f76adfe145de3565411711255b8.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index fda5c2e..1bbf9b4 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;