Skip to content

Commit 9325285

Browse files
PhilipOakleygitster
authored andcommitted
doc: check-ignore: code-quote an exclamation mark
The plain quoted exclamation mark renders as italics in the Windows pdf help manual. Fix this with back-tick quoting and surrounding double quotes as exemplified by the gitignore.txt guide. While at it, fix the surrounding double quotes for the other special characters usages. Signed-off-by: Philip Oakley <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c53a8c commit 9325285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-check-ignore.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OPTIONS
3333
Instead of printing the paths that are excluded, for each path
3434
that matches an exclude pattern, print the exclude pattern
3535
together with the path. (Matching an exclude pattern usually
36-
means the path is excluded, but if the pattern begins with '!'
36+
means the path is excluded, but if the pattern begins with "`!`"
3737
then it is a negated pattern and matching it means the path is
3838
NOT excluded.)
3939
+
@@ -77,7 +77,7 @@ If `--verbose` is specified, the output is a series of lines of the form:
7777
<pathname> is the path of a file being queried, <pattern> is the
7878
matching pattern, <source> is the pattern's source file, and <linenum>
7979
is the line number of the pattern within that source. If the pattern
80-
contained a `!` prefix or `/` suffix, it will be preserved in the
80+
contained a "`!`" prefix or "`/`" suffix, it will be preserved in the
8181
output. <source> will be an absolute path when referring to the file
8282
configured by `core.excludesFile`, or relative to the repository root
8383
when referring to `.git/info/exclude` or a per-directory exclude file.

0 commit comments

Comments
 (0)