Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 4/4] diff --stat: use most of the space for file names

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:02

Zbigniew Jędrzejewski-Szmek [off-list ref] writes:
quoted hunk
Signed-off-by: Zbigniew Jędrzejewski-Szmek <redacted>
---
 diff.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/diff.c b/diff.c
index 8406a0d..6220190 100644
--- a/diff.c
+++ b/diff.c
@@ -1343,7 +1343,8 @@ static void show_stats(struct diffstat_t *data, struct diff_options *options)
 	}
 
 	width = options->stat_width ? options->stat_width : term_columns();
-	name_width = options->stat_name_width ? options->stat_name_width : 50;
+	name_width = options->stat_name_width ? options->stat_name_width
+		: term_columns() - 20; /* the graph defaults to 20 columns */
Why?  Isn't 80-50 = 30?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help