From: Miklos Vajna Date: Tue, 24 Mar 2009 01:09:15 +0000 (+0100) Subject: builtin-show-branch: use warning() instead of fprintf(stderr, "warning: ") X-Git-Tag: v1.6.3-rc0~104 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=33fa4d3dfe71dec05da35e187433101486f4eac2;p=git.git builtin-show-branch: use warning() instead of fprintf(stderr, "warning: ") Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- diff --git a/builtin-show-branch.c b/builtin-show-branch.c index 306b850c7..828e6f86d 100644 --- a/builtin-show-branch.c +++ b/builtin-show-branch.c @@ -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; }