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 | builtin/show-ref: stop using global variable to count matches (diff) | |
| download | git-b0f0be939841376fa0b8dab963ff439dae5226c3.tar.gz git-b0f0be939841376fa0b8dab963ff439dae5226c3.zip | |
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
