mirror of
https://github.com/git/git.git
synced 2026-01-11 18:45:28 +00:00
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:
committed by
Junio C Hamano
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)) {
|
||||
|
||||
Reference in New Issue
Block a user