Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-30 Thread Johannes Schindelin
Hi, On Fri, 27 Jul 2018, Junio C Hamano wrote: > Stefan Beller writes: > > [...] Thanks for the patch! The only thing that was not clear to me from the patch and from the commit message was: the first part *is* case insensitive, right? How does the patch take care of that? Is it relying on

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-28 Thread Jeff King
On Fri, Jul 27, 2018 at 08:52:59PM -0700, Stefan Beller wrote: > > > + for key in "v.a.r" "V.A.r" "v.A.r" "V.a.r" > > > + do > > > + cp testConfig testConfig_actual && > > > + git config -f testConfig_actual v.a.r value2 && > > > + test_cmp

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Stefan Beller
On Fri, Jul 27, 2018 at 6:01 PM Junio C Hamano wrote: > > Stefan Beller writes: > > > A use reported a submodule issue regarding strange case indentation > > s/use//; Is this "indentation" issue? eh case sensitivity* > > + q_to_tab >testConfig_expect <<-EOF && > > + #

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Junio C Hamano
Stefan Beller writes: > I really appreciate the work by DScho (and Peff as I recall him as an active > reviewer there) on 4f4d0b42bae (Merge branch 'js/empty-config-section-fix', > 2018-05-08), as the corner cases are all correct, modulo the one line fix > in this patch. Amen to the early part

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Junio C Hamano
Stefan Beller writes: > A use reported a submodule issue regarding strange case indentation s/use//; Is this "indentation" issue? > issues, but it could be boiled down to the following test case: > ... > +test_expect_success 'old-fashioned settings are case insensitive' ' > +

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Stefan Beller
I cc'd the wrong peff. Sorry about that. On Fri, Jul 27, 2018 at 4:36 PM Stefan Beller wrote:

[PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Stefan Beller
A use reported a submodule issue regarding strange case indentation issues, but it could be boiled down to the following test case: $ git init test && cd test $ git config foo."Bar".key test $ git config foo."bar".key test $ tail -n 3 .git/config [foo "Bar"] key = test

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Stefan Beller
On Fri, Jul 27, 2018 at 2:39 PM Junio C Hamano wrote: > > Brandon Williams writes: > > > Either way you're probably going to need to be careful about how you do > > string comparison against the different parts. > > Good suggestion. The suggestion is a rabit hole and was a waste of time.

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Junio C Hamano
Brandon Williams writes: > Either way you're probably going to need to be careful about how you do > string comparison against the different parts. Good suggestion. >> diff --git a/t/t1300-config.sh b/t/t1300-config.sh >> index 03c223708eb..8325d4495f4 100755 >> --- a/t/t1300-config.sh >> +++

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Junio C Hamano
Stefan Beller writes: > A use reported a submodule issue regarding strange case indentation > issues, but it could be boiled down to the following test case: > > $ git init test && cd test > $ git config foo."Bar".key test > $ git config foo."bar".key test > $ tail -n 3 .git/config >

Re: [PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Brandon Williams
On 07/27, Stefan Beller wrote: > A use reported a submodule issue regarding strange case indentation > issues, but it could be boiled down to the following test case: > > $ git init test && cd test > $ git config foo."Bar".key test > $ git config foo."bar".key test > $ tail -n 3

[PATCH] config: fix case sensitive subsection names on writing

2018-07-27 Thread Stefan Beller
A use reported a submodule issue regarding strange case indentation issues, but it could be boiled down to the following test case: $ git init test && cd test $ git config foo."Bar".key test $ git config foo."bar".key test $ tail -n 3 .git/config [foo "Bar"] key = test