summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-24 03:32:31 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-24 03:32:31 -0700
commitf54c76f1616cf470ce4bce8eff749272e1c6548c (patch)
treec3dd58a8e23b2028e5c3defde2eae14e42f1e0ca /diff.c
parentMerge branch 'master' into next (diff)
parent--summary output should print immediately after stats. (diff)
downloadtgif-f54c76f1616cf470ce4bce8eff749272e1c6548c.tar.xz
Merge branch 'master' into next
* master: --summary output should print immediately after stats. git-svn: ignore expansion of svn:keywords git-svn: starting a 1.1.0-pre development version cvsimport: set up commit environment in perl instead of using env
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index a7bb9b95bd..9e9cfc8b75 100644
--- a/diff.c
+++ b/diff.c
@@ -1989,6 +1989,9 @@ void diff_flush(struct diff_options *options)
show_stats(diffstat);
free(diffstat);
diffstat = NULL;
+ if (options->summary)
+ for (i = 0; i < q->nr; i++)
+ diff_summary(q->queue[i]);
if (options->stat_sep)
fputs(options->stat_sep, stdout);
else
@@ -2005,7 +2008,7 @@ void diff_flush(struct diff_options *options)
}
for (i = 0; i < q->nr; i++) {
- if (options->summary)
+ if (diffstat && options->summary)
diff_summary(q->queue[i]);
diff_free_filepair(q->queue[i]);
}