aboutsummaryrefslogtreecommitdiff
path: root/builtin-show-ref.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 02:09:16 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-23 21:02:27 -0700
commit5620e77e30b72e674a6bec55fd4bfdac2d5a75fd (patch)
tree2e2bdf6a41f54fa6564ce5809b73692ebb1c0af1 /builtin-show-ref.c
parent33fa4d3dfe71dec05da35e187433101486f4eac2 (diff)
downloadgit-5620e77e30b72e674a6bec55fd4bfdac2d5a75fd.tar.gz
git-5620e77e30b72e674a6bec55fd4bfdac2d5a75fd.tar.xz
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 572b11411..dc76c5090 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)) {