diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-24 03:32:31 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-24 03:32:31 -0700 |
commit | f54c76f1616cf470ce4bce8eff749272e1c6548c (patch) | |
tree | c3dd58a8e23b2028e5c3defde2eae14e42f1e0ca /diff.c | |
parent | Merge branch 'master' into next (diff) | |
parent | --summary output should print immediately after stats. (diff) | |
download | tgif-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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]); } |