Code

add--interactive: allow user to choose mode update
authorJeff King <peff@peff.net>
Thu, 27 Mar 2008 07:32:25 +0000 (03:32 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Mar 2008 20:54:57 +0000 (13:54 -0700)
commitca7246864b43e9ea1922cc5386225ecd1b3bdd98
tree9f38aee689bd5301e247ae146d6e8d6270bed335
parentb717a627629e6886956af54274d507b9711d49e6
add--interactive: allow user to choose mode update

When using the 'p'atch command, instead of just throwing out any mode
change, present it to the user in the same way that we show hunks.

This way, the mode change can be staged independently from the changes
to the contents.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl
t/t3701-add-interactive.sh