Code

builtin-show-ref: use warning() instead of fprintf(stderr, "warning: ")
authorMiklos Vajna <vmiklos@frugalware.org>
Tue, 24 Mar 2009 01:09:16 +0000 (02:09 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Mar 2009 04:02:27 +0000 (21:02 -0700)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-show-ref.c

index 572b114119db15f5f42dd79e3bc15e6d219f71db..dc76c5090f2367426201b37c5b13c2a5cbf00de2 100644 (file)
@@ -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)) {