Subject: Re: [PATCH v2 2/5] tests: handle --global directly in test_config/test_unconfig

From: Junio C Hamano <[email-masked]>
Date: Thu, 16 Jun 2022 14:34:06 -0700

Jacob Keller <[email-masked]> 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.