documentation for git-rm

Previous thread: RE: documentation for git-rm by Goetz, Philip (NIH/NLM/LHC) [C] on Tuesday, January 16, 2007 - 10:52 am. (1 message)

Next thread: [PATCH] Fix spurious compile error by Johannes Schindelin on Tuesday, January 16, 2007 - 2:10 pm. (1 message)
From: Goetz, Philip (NIH/NLM/LHC) [C]
Date: Tuesday, January 16, 2007 - 10:48 am

Hello!  The documentation for git-rm at
http://www.kernel.org/pub/software/scm/git/docs/git-rm.html says

EXAMPLES

git-rm Documentation/\*.txt

    Removes all *.txt files from the index that are under the
Documentation directory and any of its subdirectories. The files are not
removed from the working tree.


I think that this should say


git-rm --cached Documentation/\*.txt

?

Otherwise I don't see why it wouldn't remove the files from the working
tree.  If this is a documentation error, it could cause some bad
problems for people who follow it.
-

Previous thread: RE: documentation for git-rm by Goetz, Philip (NIH/NLM/LHC) [C] on Tuesday, January 16, 2007 - 10:52 am. (1 message)

Next thread: [PATCH] Fix spurious compile error by Johannes Schindelin on Tuesday, January 16, 2007 - 2:10 pm. (1 message)