add -i: allow prefix highlighting for "Add untracked" as well.
authorWincent Colaiuta <win@wincent.com>
Sun, 2 Dec 2007 13:44:11 +0000 (14:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 2 Dec 2007 19:09:22 +0000 (11:09 -0800)
commit633209898b71df4cf4d9296f224294f9fe252f66
tree047cbd7f68001dfd42e2110c6c9a33184babba17
parent14cb50382c9027ca3b8cf8dbc0a26503a40f50c5
add -i: allow prefix highlighting for "Add untracked" as well.

These changes make the automatic prefix highlighting work with the "Add
untracked" subcommand in git-add--interactive by explicitly handling
arrays, hashes and strings internally (previously only arrays and hashes
were handled).

In addition, prefixes which have special meaning for list_and_choose
(things like "*" for "all" and "-" for "deselect) are explicitly
excluded (highlighting these prefixes would be misleading).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl