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>
This commit is contained in:
parent
33fa4d3dfe
commit
5620e77e30
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user