From: Jonathan Nieder Date: Fri, 20 Aug 2010 10:30:24 +0000 (-0500) Subject: Documentation: clarify quoting in "git rm" example X-Git-Tag: v1.7.3-rc0~15^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c300578f12ec23ba22f16af16259650e38e88f87;p=git.git 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 Cc: Carl Worth Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-rm.txt b/Documentation/git-rm.txt index d146751ca..71e3d9fc2 100644 --- a/Documentation/git-rm.txt +++ b/Documentation/git-rm.txt @@ -136,11 +136,11 @@ git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached EXAMPLES -------- -git rm Documentation/\\*.txt:: - Removes all `\*.txt` files from the index that are under the +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 +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.