From bd48adc31d0522e7877aa494ce7df91581e09587 Mon Sep 17 00:00:00 2001 From: Dragan Simic Date: Mon, 11 Sep 2023 17:39:44 +0200 Subject: diff --stat: add config option to limit filename width Add new configuration option diff.statNameWidth= that is equivalent to the command-line option --stat-name-width=, but it is ignored by format-patch. This follows the logic established by the already existing configuration option diff.statGraphWidth=. Limiting the widths of names and graphs in the --stat output makes sense for interactive work on wide terminals with many columns, hence the support for these configuration options. They don't affect format-patch because it already adheres to the traditional 80-column standard. Update the documentation and add more tests to cover new configuration option diff.statNameWidth=. While there, perform a few minor code and whitespace cleanups here and there, as spotted. Signed-off-by: Dragan Simic Signed-off-by: Junio C Hamano --- graph.c | 1 - 1 file changed, 1 deletion(-) (limited to 'graph.c') diff --git a/graph.c b/graph.c index 2a9dc430fa..1ca34770ee 100644 --- a/graph.c +++ b/graph.c @@ -339,7 +339,6 @@ void graph_setup_line_prefix(struct diff_options *diffopt) diffopt->output_prefix = diff_output_prefix_callback; } - struct git_graph *graph_init(struct rev_info *opt) { struct git_graph *graph = xmalloc(sizeof(struct git_graph)); -- cgit v1.2.3