]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/show-ref: refactor options for patterns subcommand
authorPatrick Steinhardt <ps@pks.im>
Tue, 31 Oct 2023 08:16:42 +0000 (09:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2023 03:09:00 +0000 (12:09 +0900)
commitee26f1e29a7fb2d26946015a7cf946d6d112e432
tree512a3ee29ffa97471a9a6ec26881db178a85ce6a
parentb0f0be939841376fa0b8dab963ff439dae5226c3
builtin/show-ref: refactor options for patterns subcommand

The patterns subcommand is the last command that still uses global
variables to track its options. Convert it to use a structure instead
with the same motivation as preceding commits.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/show-ref.c