From: Ævar Arnfjörð Bjarmason Date: Wed, 25 Nov 2020 08:47:22 GMT Subject: Re: [PATCH v2 2/2] config: allow specifying config entries via envvar pairs Message-ID: <875z5tq0v9.fsf@evledraar.gmail.com> In-Reply-To: <97740ada840a1e2f151003e695de9f2efa5a7e62.1606214397.git.ps@pks.im> On Tue, Nov 24 2020, Patrick Steinhardt wrote: > +test_expect_success 'command line overrides environment config' ' > + GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=pair.one GIT_CONFIG_VALUE_0=value \ > + git -c pair.one=override config pair.one >actual && > + cat >expect <<-EOF && > + override > + EOF > + test_cmp expect actual > +' > + Maybe a test to see which one of this new-style key-value thing v.s. GIT_CONFIG_PARAMETERS wins? Helps if/when we ever refactor this to at least see the behavior of the purely internal thing changed.