diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-03-23 16:02:53 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-23 08:33:10 -0700 |
| commit | f22360902621e0807a1c0a77476e3e4d323c708d (patch) | |
| tree | ad15abf7edc06866b913901a3de9aee6b31218a3 /diffcore.h | |
| parent | 17cabd369b5cb96bee9577f49247ef95d07058a7 (diff) | |
| download | git-f22360902621e0807a1c0a77476e3e4d323c708d.tar.xz | |
fsck: initialize fsck options via a function
We initialize the `struct fsck_options` via a set of macros, often in
global scope. In the next commit though we're about to introduce a new
repository field to the options that must be initialized, and naturally
we don't have a repo other than `the_repository` available in this
scope.
Refactor the code to instead intrdouce a new `fsck_options_init()`
function that initializes the options for us and move initialization
into function scope.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore.h')
0 files changed, 0 insertions, 0 deletions
