@matheusbsbs / matheus-bagliano / commits / 5620e77e30
Fork 0

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>

Miklos Vajna committed Mar 24, 2009 at 02:09 UTC 5620e77e30b72e674a6bec55fd4bfdac2d5a75fd
1 file changed +1 -1
builtin-show-ref.c
+1 -1
@@ -140,7 +140,7 @@ static int exclude_existing(const char *match)
140 continue;
141 }
142 if (check_ref_format(ref)) {
143 - fprintf(stderr, "warning: ref '%s' ignored\n", ref);
143 + warning("ref '%s' ignored", ref);
144 continue;
145 }
146 if (!string_list_has_string(&existing_refs, ref)) {