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