Skip to content

Commit

Permalink
builtin-show-branch: use warning() instead of fprintf(stderr, "warnin…
Browse files Browse the repository at this point in the history
…g: ")

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Mar 24, 2009
1 parent c36d785 commit 33fa4d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions builtin-show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 33fa4d3

Please sign in to comment.