diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-06-11 08:44:40 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-11 05:05:54 -0700 |
| commit | 65eb5b989aa6d7f764d097c6759f6b6189eb0d27 (patch) | |
| tree | eca67a5d8fb4e583ba2ad98055ff21a2906a275e /t/t4013/diff.diff_initial..side | |
| parent | 9bef2cf33111dc844e46a8a19c266320774f4bd6 (diff) | |
builtin/init: simplify logic to configure worktree
In the preceding commit we have stopped modifying the global
`git_work_tree_cfg` variable. With this change there's now some code
paths where we end up setting the local `git_work_tree_cfg` variable,
but without actually using the value for anything.
Refactor the code a bit so that we only set the worktree configuration
in case it's actually needed. Furthermore, reflow it a bit to make the
code easier to follow.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
