From: Nanako Shiraishi Date: Fri, 24 Jul 2009 22:11:05 GMT Subject: Re: [PATCH 2/2] After renaming a section, print any trailing variable definitions Message-ID: <20090725071105.6117@nanako3.lavabit.com> In-Reply-To: <1248470504-16326-3-git-send-email-alex@chmrr.net> Quoting Alex Vandiver > diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh > index 43ea283..8c43dcd 100755 > --- a/t/t1300-repo-config.sh > +++ b/t/t1300-repo-config.sh > @@ -460,6 +460,28 @@ EOF > test_expect_success "rename succeeded" "test_cmp expect .git/config" > > cat >> .git/config << EOF > +[branch "vier"] z = 1 > +EOF Isn't this a syntax error? Documentation/config.txt says this. Subsection names are case sensitive and can contain any characters except newline (doublequote `"` and backslash have to be escaped as `\"` and `\\`, respectively). Section headers cannot span multiple lines. Variables may belong directly to a section or to a given subsection. You can have `[section]` if you have `[section "subsection"]`, but you don't need to. There is also a case insensitive alternative `[section.subsection]` syntax. In this syntax, subsection names follow the same restrictions as for section names. All the other lines are recognized as setting variables, in the form 'name = value'. If there is no equal sign on the line, the entire line ... I read "All the other lines" to mean that the section headers and variable definitions are supposed to be on different lines. -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/