aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-01-05 13:28:09 -0800
committerJunio C Hamano <gitster@pobox.com>2018-01-05 13:28:09 -0800
commitfa62d0392b6f69e5c2ba0885bd85e670c28e9546 (patch)
treed03238fff156c6f6b23e69c38f4470b7e7cd0e5f /Documentation
parent07b747d32467a34768f6a95571266d98ad22b1dc (diff)
parent1feb061701463410647665c4848b6466bf7a97c6 (diff)
downloadgit-fa62d0392b6f69e5c2ba0885bd85e670c28e9546.tar.gz
git-fa62d0392b6f69e5c2ba0885bd85e670c28e9546.tar.xz
Merge branch 'db/doc-config-section-names-with-bs'
Doc update. * db/doc-config-section-names-with-bs: config.txt: document behavior of backslashes in subsections
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 64c1dbba9..0e25b2c92 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -41,11 +41,13 @@ in the section header, like in the example below:
--------
Subsection names are case sensitive and can contain any characters except
-newline (doublequote `"` and backslash can be included by escaping them
-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.
+newline and the null byte. Doublequote `"` and backslash can be included
+by escaping them as `\"` and `\\`, respectively. Backslashes preceding
+other characters are dropped when reading; for example, `\t` is read as
+`t` and `\0` is read as `0` 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 deprecated `[section.subsection]` syntax. With this
syntax, the subsection name is converted to lower-case and is also