git-commit: partial commit of paths only removed from the index
commitdb33af0a7f64ffc48de3ad018a1df03f744fb7a2
authorJunio C Hamano <gitster@pobox.com>
Fri, 14 Sep 2007 23:53:58 +0000 (14 16:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Sep 2007 23:53:58 +0000 (14 16:53 -0700)
tree52a18bd2f7cfb709c8dfec9a50d0f5f863b252c8
parent80bffaf7fbe09ef62ecb9a6ffea70ac0171b456c
git-commit: partial commit of paths only removed from the index

Because a partial commit is meant to be a way to ignore what are
staged in the index, "git rm --cached A && git commit A" should
just record what is in A on the filesystem.  The previous patch
made the command sequence to barf, saying that A has not been
added yet.  This fixes it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-commit.sh
t/t7501-commit.sh