author | Pauli Virtanen <pav@iki.fi> | |
Sat, 10 Oct 2009 15:51:45 +0000 (18:51 +0300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 10 Oct 2009 21:56:13 +0000 (14:56 -0700) | ||
commit | b145b211baa4129a827cc1b1b1a7984523b8f903 | |
tree | a8c0f81923c408dc247f42c96e254cf4a6f34649 | tree | snapshot |
parent | ac78b009398f8cab1f57d1ef62db21ac95e11ed1 | commit | diff |
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>
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 | diff | blob | history | |
t/t3701-add-interactive.sh | diff | blob | history |