author | Carl Worth <cworth@cworth.org> | |
Tue, 21 Feb 2006 23:04:51 +0000 (15:04 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 23 Feb 2006 01:10:42 +0000 (17:10 -0800) | ||
commit | d4a1cab541be0c276b38285c8b33050ea411eacf | |
tree | fa392a19be606f1f90e0792d8407df3a4bf09969 | tree | snapshot |
parent | 2cf3be1d31b322cf45640f3019a32d19a8a9b6f8 | commit | diff |
Add new git-rm command with documentation
This adds a git-rm command which provides convenience similar to
git-add, (and a bit more since it takes care of the rm as well if
given -f).
Like git-add, git-rm expands the given path names through
git-ls-files. This means it only acts on files listed in the
index. And it does act recursively on directories by default, (no -r
needed as in the case of rm itself). When it recurses, it does not
remove empty directories that are left behind.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This adds a git-rm command which provides convenience similar to
git-add, (and a bit more since it takes care of the rm as well if
given -f).
Like git-add, git-rm expands the given path names through
git-ls-files. This means it only acts on files listed in the
index. And it does act recursively on directories by default, (no -r
needed as in the case of rm itself). When it recurses, it does not
remove empty directories that are left behind.
Signed-off-by: Junio C Hamano <junkio@cox.net>
.gitignore | diff | blob | history | |
Documentation/git-rm.txt | [new file with mode: 0644] | blob |
Makefile | diff | blob | history | |
git-rm.sh | [new file with mode: 0755] | blob |
t/t3600-rm.sh | [new file with mode: 0755] | blob |