Skip to content

Commit f737632

Browse files
carlosmngitster
authored andcommitted
Documentation: update [section.subsection] to reflect what git does
Using the [section.subsection] syntax, the subsection is transformed to lower-case and is matched case sensitively. Say so in the documentation and mention that you shouldn't be using it anyway. Signed-off-by: Carlos Martín Nieto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 87b5054 commit f737632

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Documentation/config.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ lines. Variables may belong directly to a section or to a given subsection.
4545
You can have `[section]` if you have `[section "subsection"]`, but you
4646
don't need to.
4747

48-
There is also a case insensitive alternative `[section.subsection]` syntax.
49-
In this syntax, subsection names follow the same restrictions as for section
50-
names.
48+
There is also a deprecated `[section.subsection]` syntax. With this
49+
syntax, the subsection name is converted to lower-case and is also
50+
compared case sensitively. These subsection names follow the same
51+
restrictions as section names.
5152

5253
All the other lines (and the remainder of the line after the section
5354
header) are recognized as setting variables, in the form

0 commit comments

Comments
 (0)