Thread (1 message) 1 message, 1 author, 2018-08-02

Re: [PATCH 0/3] sb/config-write-fix done without robbing Peter

From: Junio C Hamano <hidden>
Date: 2018-08-02 19:50:00

Stefan Beller [off-list ref] writes:
quoted
Am I correct to understand that this patch is a "FIX" for breakage
introduced by that commit?  The phrasing is not helping me to pick
a good base to queue these patches on.
Please pick 4f4d0b42bae (Merge branch 'js/empty-config-section-fix', 2018-05-08)
as the base of this new series (am needs -3 to apply), although I developed this
series on origin/master.
quoted
Even though I hate to rob Peter to pay Paul (or vice versa)
Yeah me, too. Here is a proper fix (i.e. only pay Paul, without the robbery),
and a documentation of the second bug that we discovered.
Thanks.

I started with this in 'config'

    [V.A]	r = one
    [v.a]	r = two

and did "git config --replace-all v.a.r 1", which resulted in

    [V.A]
    [v.a]
		r = 1

which is "correct", but defeats the "empty section is irritating"
tweak that introduced the bug these patches try to fix, which is
unfortunate.

But then "git config v.A.r 2" would give us

    [V.A]
    [v.a]
		r = 1
		r = 2

So this seems still broken, somewhat.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help