Don't always require working tree for git-rm
authorMike Hommey <mh@glandium.org>
Sat, 3 Nov 2007 11:23:13 +0000 (12:23 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2007 06:47:57 +0000 (22:47 -0800)
commit271bb08735435b859464c22506ba512f003a4191
tree56b023aea0d669eb73f7126a244e7f43305168a9
parent7d8ae93292e2cd862359f02879a0c954faf8afa8
Don't always require working tree for git-rm

This allows to do git rm --cached -r directory, instead of
git ls-files -z directory | git update-index --remove -z --stdin.
This can be particularly useful for git-filter-branch users.

Signed-off-by: Mike Hommey <mh@glandium.org>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rm.c
git.c