add -p: improve error messages
commit4bdd6e7ce33c72dfaa79c4139d30bd809ec8eda7
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 13 Feb 2018 10:32:41 +0000 (13 10:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Feb 2018 21:01:56 +0000 (13 13:01 -0800)
treea52f7448f4e89c0bbc4ff7e51631db6968a74300
parent88f6ffc1c256ef241cbed33dabbdd23c1a7ac6a9
add -p: improve error messages

If the user presses a key that isn't currently active then explain why
it isn't active rather than just listing all the keys. It already did
this for some keys, this patch does the same for the those that
weren't already handled.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl