path: root/diff.h
diff options
authorMichael J Gruber <>2011-05-27 12:36:41 (GMT)
committerJunio C Hamano <>2011-05-27 17:44:34 (GMT)
commit808e1db231195af31075d1e0f9e4f6026a96d06a (patch)
treeca85fb1fbe73b2afd41e9cab0e8a857590c0081a /diff.h
parent358e460eebd3c19f228f02461b5f161ea48b0a98 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'diff.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index 6fe1597..59608f9 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;