From: Junio C Hamano Date: Wed, 24 May 2006 10:32:31 +0000 (-0700) Subject: Merge branch 'master' into next X-Git-Tag: v1.4.1-rc1~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f54c76f1616cf470ce4bce8eff749272e1c6548c;p=git.git 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 --- f54c76f1616cf470ce4bce8eff749272e1c6548c diff --cc diff.c index a7bb9b95b,77c09a87b..9e9cfc8b7 --- a/diff.c +++ b/diff.c @@@ -1989,10 -1988,10 +1989,13 @@@ void diff_flush(struct diff_options *op show_stats(diffstat); free(diffstat); diffstat = NULL; + if (options->summary) + for (i = 0; i < q->nr; i++) + diff_summary(q->queue[i]); - putchar(options->line_termination); + if (options->stat_sep) + fputs(options->stat_sep, stdout); + else + putchar(options->line_termination); } for (i = 0; i < q->nr; i++) { struct diff_filepair *p = q->queue[i];