diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-10-31 09:16:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-01 12:09:00 +0900 |
commit | b0f0be939841376fa0b8dab963ff439dae5226c3 (patch) | |
tree | 2ab3d6221e33cc066a916f6399c7fe658d07a78b /t/t9133-git-svn-nested-git-repo.sh | |
parent | 84650989b7055a9016972b8430c882d7d8582e4f (diff) |
builtin/show-ref: stop using global vars for `show_one()`
The `show_one()` function implicitly receives a bunch of options which
are tracked via global variables. This makes it hard to see which
subcommands of git-show-ref(1) actually make use of these options.
Introduce a `show_one_options` structure that gets passed down to this
function. This allows us to get rid of more global state and makes it
more explicit which subcommands use those options.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9133-git-svn-nested-git-repo.sh')
0 files changed, 0 insertions, 0 deletions