Skip to content

Commit bf7cbb2

Browse files
committed
git-add documentation: Fix shell quoting example
When 921177f (Documentation: improve "add", "pull" and "format-patch" examples, 2008-05-07) converted this from enumeration header to displayed text, it failed to adjust for the AsciiDoc's rule to quote backslashes. In displayed text, backslash is shown verbatim, while in enumeration header, we need to double it. We have a similar construct in git-rm.txt documentation, and need to be careful when somebody wants to update it to match the style of the "git add" example. Noticed by: Greg Bacon <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 921177f commit bf7cbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-add.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ EXAMPLES
103103
and its subdirectories:
104104
+
105105
------------
106-
$ git add Documentation/\\*.txt
106+
$ git add Documentation/\*.txt
107107
------------
108108
+
109109
Note that the asterisk `\*` is quoted from the shell in this

0 commit comments

Comments
 (0)