projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c989ec
)
git-log: do not output excess blank line between commits
author
Junio C Hamano
<junkio@cox.net>
Thu, 13 Apr 2006 07:26:21 +0000
(
00:26
-0700)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 13 Apr 2006 07:26:21 +0000
(
00:26
-0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c
patch
|
blob
|
history
diff --git
a/git.c
b/git.c
index
5cb0d32
..
d6f17db
100644
(file)
--- a/
git.c
+++ b/
git.c
@@
-354,7
+354,7
@@
static int cmd_log(int argc, const char **argv, char **envp)
prepare_revision_walk(&rev);
setup_pager();
while ((commit = get_revision(&rev)) != NULL) {
- if (
commit_format != CMIT_FMT_ONELINE && shown
)
+ if (
shown && do_diff && commit_format != CMIT_FMT_ONELINE
)
putchar('\n');
fputs(commit_prefix, stdout);
if (abbrev_commit && abbrev)