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 /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 'diff.c')
| -rw-r--r-- | diff.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -6936,6 +6936,13 @@ void diff_queued_diff_prefetch(void *repository) oid_array_clear(&to_fetch); } +void init_diffstat_widths(struct diff_options *options) +{ + options->stat_width = -1; /* use full terminal width */ + options->stat_name_width = -1; /* respect diff.statNameWidth config */ + options->stat_graph_width = -1; /* respect diff.statGraphWidth config */ +} + void diffcore_std(struct diff_options *options) { int output_formats_to_prefetch = DIFF_FORMAT_DIFFSTAT | |
