From a2540023dcf833ca02d87c28052e8b7135d56b60 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 26 Sep 2006 18:53:02 -0700 Subject: 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 --- diff.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'diff.h') 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; -- cgit v1.2.3