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

git-rm documentation: remove broken behaviour from the example.

The example section were talking about the old broken default behaviour. Correct it. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jan 16, 2007 at 11:50 UTC a9877f83e0da46efcbc552bd439acee2dcc499d0
2 files changed +5 -9
Documentation/git-rm.txt
+4 -8
@@ -60,21 +60,17 @@ a file that you have not told git about does not remove that file.
60 EXAMPLES
61 --------
62 git-rm Documentation/\\*.txt::
63 -
63 Removes all `\*.txt` files from the index that are under the
65 - `Documentation` directory and any of its subdirectories. The
66 - files are not removed from the working tree.
64 + `Documentation` directory and any of its subdirectories.
65 +
66 Note that the asterisk `\*` is quoted from the shell in this
67 example; this lets the command include the files from
68 subdirectories of `Documentation/` directory.
69
70 git-rm -f git-*.sh::
73 -
74 - Remove all git-*.sh scripts that are in the index. The files
75 - are removed from the index, and from the working
76 - tree. Because this example lets the shell expand the
77 - asterisk (i.e. you are listing the files explicitly), it
71 + Remove all git-*.sh scripts that are in the index.
72 + Because this example lets the shell expand the asterisk
73 + (i.e. you are listing the files explicitly), it
74 does not remove `subdir/git-foo.sh`.
75
76 See Also
builtin-rm.c
+1 -1
@@ -10,7 +10,7 @@
10 #include "tree-walk.h"
11
12 static const char builtin_rm_usage[] =
13 -"git-rm [-n] [-f] [--cached] <filepattern>...";
13 +"git-rm [-f] [-n] [-r] [--cached] [--] <file>...";
14
15 static struct {
16 int nr, alloc;