Re: [PATCH v2 2/5] tests: handle --global directly in test_config/test_unconfig
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 16, 2022, 21:34 UTC
- Message-ID
- <xmqqpmj8qomp.fsf@gitster.g>
- In-Reply-To
- <20220616205456.19081-3-jacob.e.keller@intel.com>
Jacob Keller <jacob.keller@gmail.com> writes:
> + --global) > + global=yes
global=--global
> ...
> + git ${config_dir:+-C "$config_dir"} config ${global:+--global} --unset-all "$1" git ${config_dir:+-C "$config_dir"} config $global --unset-all "$1"The other one can use the same trick to make it more concise.
Thanks.