git-clean: implement partial matching for selection
commit60838613054f43d63086b0f4a7596baaee9e20c5
authorJiang Xin <worldhello.net@gmail.com>
Wed, 24 Jul 2013 02:22:04 +0000 (24 10:22 +0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Jul 2013 02:16:51 +0000 (24 19:16 -0700)
treeca9eee2aafdbd902d54ec15b769d99c173630084
parent309422e033bc2e25a3a80d1336993a75b7daaf33
git-clean: implement partial matching for selection

Document for interactive git-clean says: "You also could say `c` or
`clean` above as long as the choice is unique". But it's not true,
because only hotkey `c` and full match (`clean`) could work.

Implement partial matching via find_unique function to make the
document right.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clean.c
t/t7301-clean-interactive.sh