git-add--interactive: never skip files included in index
authorPauli Virtanen <pav@iki.fi>
Sat, 10 Oct 2009 15:51:45 +0000 (18:51 +0300)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Oct 2009 21:56:13 +0000 (14:56 -0700)
commitb145b211baa4129a827cc1b1b1a7984523b8f903
treea8c0f81923c408dc247f42c96e254cf4a6f34649
parentac78b009398f8cab1f57d1ef62db21ac95e11ed1
git-add--interactive: never skip files included in index

Make "git add -p" to not skip files that are in index even if they are
excluded (by .gitignore etc.). This fixes the contradictory behavior
that "git status" and "git commit -a" listed such files as modified, but
"git add -p FILENAME" ignored them.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl
t/t3701-add-interactive.sh