diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-01-06 00:28:09 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-06 00:28:09 +0300 |
commit | fa62d0392b6f69e5c2ba0885bd85e670c28e9546 (patch) | |
tree | d03238fff156c6f6b23e69c38f4470b7e7cd0e5f /Documentation | |
parent | 07b747d32467a34768f6a95571266d98ad22b1dc (diff) | |
parent | 1feb061701463410647665c4848b6466bf7a97c6 (diff) |
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.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index 64c1dbba94..0e25b2c92b 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 |