Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-27 05:53:02 +0400
committerJunio C Hamano <junkio@cox.net>2006-09-27 13:55:08 +0400
commita2540023dcf833ca02d87c28052e8b7135d56b60 (patch)
tree68b099b93e9072838d9cd108614c5be9c9bb696c /diff.h
parent4a0641b7cf833644b286b56bb57d66b5538e4418 (diff)
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 b60a02e627..e06d0f4188 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;