aboutsummaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-26 18:53:02 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-27 02:55:08 -0700
commita2540023dcf833ca02d87c28052e8b7135d56b60 (patch)
tree68b099b93e9072838d9cd108614c5be9c9bb696c /diff.h
parent4a0641b7cf833644b286b56bb57d66b5538e4418 (diff)
downloadgit-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index b60a02e62..e06d0f418 100644
--- a/diff.h
+++ b/diff.h
@@ -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;