From: Miklos Vajna Date: Tue, 24 Mar 2009 01:09:16 +0000 (+0100) Subject: builtin-show-ref: use warning() instead of fprintf(stderr, "warning: ") X-Git-Tag: v1.6.3-rc0~103 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5620e77e30b72e674a6bec55fd4bfdac2d5a75fd;p=git.git builtin-show-ref: use warning() instead of fprintf(stderr, "warning: ") Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- 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)) {