@matheusbsbs / matheus-bagliano / commits / c300578f12
Fork 0

Documentation: clarify quoting in "git rm" example

Intended output: git rm Documentation/\*.txt Removes all *.txt files from the index that are under the Documentation directory and any of its subdirectories. Note that the asterisk * is quoted from the shell in this example; this lets git, and not the shell, expand the pathnames of files and subdirectories under the Documentation/ directory. Without this change, there are too many backslashes output. Tested with asciidoc 8.5.2. Reported-by: Frédéric Brière <fbriere@fbriere.net> Cc: Carl Worth <cworth@cworth.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Aug 20, 2010 at 05:30 UTC c300578f12ec23ba22f16af16259650e38e88f87
1 file changed +3 -3
Documentation/git-rm.txt
+3 -3
@@ -136,11 +136,11 @@ git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached
136
137 EXAMPLES
138 --------
139 -git rm Documentation/\\*.txt::
140 - Removes all `\*.txt` files from the index that are under the
139 +git rm Documentation/\*.txt::
140 + Removes all `*.txt` files from the index that are under the
141 `Documentation` directory and any of its subdirectories.
142 +
143 -Note that the asterisk `\*` is quoted from the shell in this
143 +Note that the asterisk `*` is quoted from the shell in this
144 example; this lets git, and not the shell, expand the pathnames
145 of files and subdirectories under the `Documentation/` directory.
146