Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
manual: Fix example finding commits referencing given content.
[gitweb.git]
/
log-tree.c
diff --git
a/log-tree.c
b/log-tree.c
index 3e5e6acfafb5345b8ed4f67599270e841b194ade..23191543d5324f20622048103a821ded4d13b77a 100644
(file)
--- a/
log-tree.c
+++ b/
log-tree.c
@@
-280,7
+280,8
@@
void show_log(struct rev_info *opt, const char *sep)
if (opt->show_log_size)
printf("log size %i\n", (int)msgbuf.len);
- printf("%s%s%s", msgbuf.buf, extra, sep);
+ if (msgbuf.len)
+ printf("%s%s%s", msgbuf.buf, extra, sep);
strbuf_release(&msgbuf);
}