diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-26 18:53:02 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-27 02:55:08 -0700 |
commit | a2540023dcf833ca02d87c28052e8b7135d56b60 (patch) | |
tree | 68b099b93e9072838d9cd108614c5be9c9bb696c /diff.h | |
parent | 4a0641b7cf833644b286b56bb57d66b5538e4418 (diff) | |
download | git-a2540023dcf833ca02d87c28052e8b7135d56b60.tar.gz git-a2540023dcf833ca02d87c28052e8b7135d56b60.tar.xz |
diff --stat: allow custom diffstat output width.
This adds two parameters to "diff --stat".
. --stat-width=72 tells that the page should fit on 72-column output.
. --stat-name-width=30 tells that the filename part is limited
to 30 columns.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -69,6 +69,9 @@ struct diff_options { const char *stat_sep; long xdl_opts; + int stat_width; + int stat_name_width; + int nr_paths; const char **paths; int *pathlens; |