diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-10-10 11:39:14 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-10-10 11:39:14 -0700 |
| commit | afb0d0880abb56d8084f1fac704e17f82d491bc9 (patch) | |
| tree | 943c3329bbd441a1666f4d9416a168eee1402e56 /builtin/diff.c | |
| parent | a7a2d10421b735944f376f1de53b437bfbb93e88 (diff) | |
| parent | 4ca7a3fd26d0c6214f46f2413c5ba8ed346fea1a (diff) | |
| download | git-afb0d0880abb56d8084f1fac704e17f82d491bc9.tar.xz | |
Merge branch 'ds/init-diffstat-width'
Code clean-up.
* ds/init-diffstat-width:
diff --stat: set the width defaults in a helper function
Diffstat (limited to 'builtin/diff.c')
| -rw-r--r-- | builtin/diff.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/diff.c b/builtin/diff.c index c0f564273a..55e7d21755 100644 --- a/builtin/diff.c +++ b/builtin/diff.c @@ -474,9 +474,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix) repo_init_revisions(the_repository, &rev, prefix); /* Set up defaults that will apply to both no-index and regular diffs. */ - rev.diffopt.stat_width = -1; - rev.diffopt.stat_name_width = -1; - rev.diffopt.stat_graph_width = -1; + init_diffstat_widths(&rev.diffopt); rev.diffopt.flags.allow_external = 1; rev.diffopt.flags.allow_textconv = 1; |
