summaryrefslogtreecommitdiff
path: root/builtin-remote.c
diff options
context:
space:
mode:
authorJay Soffian <jaysoffian@gmail.com>2009-11-10 05:03:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-10 09:01:47 (GMT)
commit3cf6134ad016712ecb78186d9079b9cff7b25416 (patch)
tree8fb37c04b2dd7a17b1907bbb8b53e0836e07b9b0 /builtin-remote.c
parentf2ef6075c9d248523bf658d82065b46d892b5601 (diff)
downloadgit-3cf6134ad016712ecb78186d9079b9cff7b25416.zip
git-3cf6134ad016712ecb78186d9079b9cff7b25416.tar.gz
git-3cf6134ad016712ecb78186d9079b9cff7b25416.tar.bz2
teach warn_dangling_symref to take a FILE argument
Different callers of warn_dangling_symref() may want to control whether its output goes to stdout or stderr so let it take a FILE argument. Signed-off-by: Jay Soffian <jaysoffian@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-remote.c')
-rw-r--r--builtin-remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-remote.c b/builtin-remote.c
index b48267b..56cd5af 100644
--- a/builtin-remote.c
+++ b/builtin-remote.c
@@ -1166,7 +1166,7 @@ static int prune_remote(const char *remote, int dry_run)
printf(" * [%s] %s\n", dry_run ? "would prune" : "pruned",
abbrev_ref(refname, "refs/remotes/"));
- warn_dangling_symref(dangling_msg, refname);
+ warn_dangling_symref(stdout, dangling_msg, refname);
}
free_remote_ref_states(&states);