summaryrefslogtreecommitdiff
path: root/builtin-show-ref.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 01:09:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-24 04:02:27 (GMT)
commit5620e77e30b72e674a6bec55fd4bfdac2d5a75fd (patch)
tree2e2bdf6a41f54fa6564ce5809b73692ebb1c0af1 /builtin-show-ref.c
parent33fa4d3dfe71dec05da35e187433101486f4eac2 (diff)
downloadgit-5620e77e30b72e674a6bec55fd4bfdac2d5a75fd.zip
git-5620e77e30b72e674a6bec55fd4bfdac2d5a75fd.tar.gz
git-5620e77e30b72e674a6bec55fd4bfdac2d5a75fd.tar.bz2
builtin-show-ref: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-show-ref.c')
-rw-r--r--builtin-show-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-show-ref.c b/builtin-show-ref.c
index 572b114..dc76c50 100644
--- a/builtin-show-ref.c
+++ b/builtin-show-ref.c
@@ -140,7 +140,7 @@ static int exclude_existing(const char *match)
continue;
}
if (check_ref_format(ref)) {
- fprintf(stderr, "warning: ref '%s' ignored\n", ref);
+ warning("ref '%s' ignored", ref);
continue;
}
if (!string_list_has_string(&existing_refs, ref)) {