summaryrefslogtreecommitdiff
path: root/Documentation/gitmodules.txt
diff options
context:
space:
mode:
authorMartin Ågren <martin.agren@gmail.com>2019-09-07 14:12:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-09-09 18:05:51 (GMT)
commit1925fe0c8aaf28b4428bfe14b87679ac1089de6c (patch)
treefeb43acba10425dba2198400d5c0cdf9a4ff299d /Documentation/gitmodules.txt
parent922a2c93f561e812412fb436987448e50f87a44c (diff)
downloadgit-1925fe0c8aaf28b4428bfe14b87679ac1089de6c.zip
git-1925fe0c8aaf28b4428bfe14b87679ac1089de6c.tar.gz
git-1925fe0c8aaf28b4428bfe14b87679ac1089de6c.tar.bz2
Documentation: wrap config listings in "----"
The indented lines in these example config-file listings are indented differently by AsciiDoc and Asciidoctor. Fix this by marking the example config-files as code listings by wrapping them in "----". Because this gives us some extra indentation, we can remove the one that we have been carrying explicitly. That is, drop the first tab of indentation on each line. With AsciiDoc, this results in identical rendering before and after this commit. Asciidoctor now renders this the same as AsciiDoc does. git-config.txt pretty consistently uses twelve dashes rather than the minimum four to spell "----". Let's stick to the file-local convention there. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitmodules.txt')
-rw-r--r--Documentation/gitmodules.txt15
1 files changed, 8 insertions, 7 deletions
diff --git a/Documentation/gitmodules.txt b/Documentation/gitmodules.txt
index a66e95b..08c7b8a 100644
--- a/Documentation/gitmodules.txt
+++ b/Documentation/gitmodules.txt
@@ -105,14 +105,15 @@ EXAMPLES
Consider the following .gitmodules file:
- [submodule "libfoo"]
- path = include/foo
- url = git://foo.com/git/lib.git
-
- [submodule "libbar"]
- path = include/bar
- url = git://bar.com/git/lib.git
+----
+[submodule "libfoo"]
+ path = include/foo
+ url = git://foo.com/git/lib.git
+[submodule "libbar"]
+ path = include/bar
+ url = git://bar.com/git/lib.git
+----
This defines two submodules, `libfoo` and `libbar`. These are expected to
be checked out in the paths `include/foo` and `include/bar`, and for both