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:
Miklos Vajna 2009-03-24 02:09:15 +01:00 committed by Junio C Hamano
parent c36d785da0
commit 33fa4d3dfe

View File

@ -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;
}