Code

diff: introduce --stat-lines to limit the stat lines
authorMichael J Gruber <git@drmicha.warpmail.net>
Fri, 27 May 2011 12:36:41 +0000 (14:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 May 2011 17:44:34 +0000 (10:44 -0700)
commit808e1db231195af31075d1e0f9e4f6026a96d06a
treeca85fb1fbe73b2afd41e9cab0e8a857590c0081a
parent358e460eebd3c19f228f02461b5f161ea48b0a98
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>
Documentation/diff-options.txt
diff.c
diff.h