summaryrefslogtreecommitdiff
path: root/builtin-show-branch.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 01:09:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-24 04:02:27 (GMT)
commit33fa4d3dfe71dec05da35e187433101486f4eac2 (patch)
tree43b0217adb0d6713a9cc396a0b0dbf7e3f5a9ce0 /builtin-show-branch.c
parentc36d785da022cb7f7860ed85d78add3f102c4969 (diff)
downloadgit-33fa4d3dfe71dec05da35e187433101486f4eac2.zip
git-33fa4d3dfe71dec05da35e187433101486f4eac2.tar.gz
git-33fa4d3dfe71dec05da35e187433101486f4eac2.tar.bz2
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>
Diffstat (limited to 'builtin-show-branch.c')
-rw-r--r--builtin-show-branch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin-show-branch.c b/builtin-show-branch.c
index 306b850..828e6f8 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;
}