summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2011-05-27 12:36:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-27 17:44:34 (GMT)
commit808e1db231195af31075d1e0f9e4f6026a96d06a (patch)
treeca85fb1fbe73b2afd41e9cab0e8a857590c0081a /Documentation
parent358e460eebd3c19f228f02461b5f161ea48b0a98 (diff)
downloadgit-808e1db231195af31075d1e0f9e4f6026a96d06a.zip
git-808e1db231195af31075d1e0f9e4f6026a96d06a.tar.gz
git-808e1db231195af31075d1e0f9e4f6026a96d06a.tar.bz2
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 'Documentation')
-rw-r--r--Documentation/diff-options.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 34f0145..000eae0 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -48,11 +48,14 @@ endif::git-format-patch[]
--patience::
Generate a diff using the "patience diff" algorithm.
---stat[=<width>[,<name-width>]]::
+--stat[=<width>[,<name-width>[,<count>]]]::
Generate a diffstat. You can override the default
output width for 80-column terminal by `--stat=<width>`.
The width of the filename part can be controlled by
giving another width to it separated by a comma.
+ By giving a third parameter `<count>`, you can limit the
+ output to the first `<count>` lines, followed by
+ `...` if there are more.
--numstat::
Similar to `\--stat`, but shows number of added and