builtin-show-branch: 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
c36d785da0
commit
33fa4d3dfe
@ -365,8 +365,7 @@ static int append_ref(const char *refname, const unsigned char *sha1,
|
||||
return 0;
|
||||
}
|
||||
if (MAX_REVS <= ref_name_cnt) {
|
||||
fprintf(stderr, "warning: ignoring %s; "
|
||||
"cannot handle more than %d refs\n",
|
||||
warning("ignoring %s; cannot handle more than %d refs",
|
||||
refname, MAX_REVS);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user