summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2011-05-27 14:36:41 +0200
committerJunio C Hamano <gitster@pobox.com>2011-05-27 10:44:34 -0700
commit808e1db231195af31075d1e0f9e4f6026a96d06a (patch)
treeca85fb1fbe73b2afd41e9cab0e8a857590c0081a /diff.h
parent358e460eebd3c19f228f02461b5f161ea48b0a98 (diff)
downloadgit-808e1db231195af31075d1e0f9e4f6026a96d06a.tar.gz
diff: introduce --stat-lines to limit the stat lines
Often one is interested in the full --stat output only for commits which change a few files, but not others, because larger restructuring gives a --stat which fills a few screens. Introduce a new option --stat-count=<count> which limits the --stat output to the first <count> lines, followed by a "..." line. It can also be given as the third parameter in --stat=<width>,<name-width>,<count>. Also, the unstuck form is supported analogous to the other two stat parameters. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index 6fe1597785..59608f9605 100644
--- a/diff.h
+++ b/diff.h
@@ -124,6 +124,7 @@ struct diff_options {
int stat_width;
int stat_name_width;
+ int stat_count;
const char *word_regex;
enum diff_words_type word_diff;