Skip to content

Commit 90a36e5

Browse files
flichtenheldJunio C Hamano
authored andcommitted
git-config: Various small fixes to asciidoc documentation
Add '' around the only mentioned commandline option that didn't have it. Make reference to section EXAMPLE a link and rename it to EXAMPLES because it actually contains a lot of examples. Signed-off-by: Frank Lichtenheld <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 86d14e1 commit 90a36e5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Documentation/git-config.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you want to update or unset an option which can occur on multiple
3131
lines, a POSIX regexp `value_regex` needs to be given. Only the
3232
existing values that match the regexp are updated or unset. If
3333
you want to handle the lines that do *not* match the regex, just
34-
prepend a single exclamation mark in front (see EXAMPLES).
34+
prepend a single exclamation mark in front (see also <<EXAMPLES>>).
3535

3636
The type specifier can be either '--int' or '--bool', which will make
3737
'git-config' ensure that the variable(s) are of the given type and
@@ -48,7 +48,7 @@ This command will fail if:
4848
. the section or key is invalid,
4949
. you try to unset an option which does not exist,
5050
. you try to unset/set an option for which multiple lines match, or
51-
. you use --global option without $HOME being properly set.
51+
. you use '--global' option without $HOME being properly set.
5252

5353

5454
OPTIONS
@@ -119,8 +119,10 @@ GIT_CONFIG_LOCAL::
119119
from the global configuration file in addition to the given file.
120120

121121

122-
EXAMPLE
123-
-------
122+
123+
[[EXAMPLES]]
124+
EXAMPLES
125+
--------
124126

125127
Given a .git/config like this:
126128

0 commit comments

Comments
 (0)