summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-15 21:02:10 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-15 21:06:42 (GMT)
commit6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9 (patch)
treeca3270358d71bbfe630c4ac6c041f9d772492072 /git.c
parent5069b1cf6177f837830dd3ac402bee4f3d088fa5 (diff)
downloadgit-6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9.zip
git-6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9.tar.gz
git-6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9.tar.bz2
diff --stat: do not do its own three-dashes.
I missed that "git-diff-* --stat" spits out three-dash separator on its own without being asked. Remove it. When we output commit log followed by diff, perhaps --patch-with-stat, for downstream consumer, we _would_ want the three-dash between the message and the diff material, but that logic belongs to the caller, not diff generator. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
-rw-r--r--git.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/git.c b/git.c
index 78ed403..61265a8 100644
--- a/git.c
+++ b/git.c
@@ -388,8 +388,10 @@ static int cmd_log(int argc, const char **argv, char **envp)
pretty_print_commit(commit_format, commit, ~0, buf,
LOGSIZE, abbrev);
printf("%s\n", buf);
- if (do_diff)
+ if (do_diff) {
+ printf("---\n");
log_tree_commit(&opt, commit);
+ }
shown = 1;
free(commit->buffer);
commit->buffer = NULL;