Thread (15 messages) 15 messages, 3 authors, 2018-02-01

Re: [PATCH] format-patch: set diffstat width to 70 instead of default 80

flat view

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2018-01-23 00:08:37

On Mon, Jan 22 2018, Nguyễn Thái Ngọc Duy jotted:
quoted hunk ↗ jump to hunk
diff --git a/builtin/log.c b/builtin/log.c
index 14fdf39165..6be79656c5 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -1061,6 +1061,7 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout,
 
 	memcpy(&opts, &rev->diffopt, sizeof(opts));
 	opts.output_format = DIFF_FORMAT_SUMMARY | DIFF_FORMAT_DIFFSTAT;
+	opts.diffopt.stat_width = 70;
 
 	diff_setup_done(&opts);
There's no opts.diffopt. Presumably this should be squashed on top:

    -       opts.diffopt.stat_width = 70;
    +       rev->diffopt.stat_width = 70;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help