Code

diff: introduce --stat-lines to limit the stat lines
[git.git] / Documentation / diff-options.txt
index 34f01458c296ce68bcba4c08177aba127fc2333b..000eae02cda10766dbe07c7e0d54d29bc63f4af4 100644 (file)
@@ -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