Skip to content

Commit

Permalink
builtin-show-ref: use warning() instead of fprintf(stderr, "warning: ")
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Mar 24, 2009
1 parent 33fa4d3 commit 5620e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-show-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5620e77

Please sign in to comment.