projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c36d785
)
builtin-show-branch: use warning() instead of fprintf(stderr, "warning: ")
author
Miklos Vajna
<vmiklos@frugalware.org>
Tue, 24 Mar 2009 01:09:15 +0000
(
02:09
+0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 24 Mar 2009 04:02:27 +0000
(21:02 -0700)
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-show-branch.c
patch
|
blob
|
history
diff --git
a/builtin-show-branch.c
b/builtin-show-branch.c
index 306b850c720ecef7030bd7139f7c7d2758125ac4..828e6f86de22f8def68a49b702a27521c248a012 100644
(file)
--- 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;
}