git-clean: add select by numbers interactive action
commitc1f1d24aa5c72821096e2a31aaf4175329ca0260
authorJiang Xin <worldhello.net@gmail.com>
Tue, 25 Jun 2013 15:53:53 +0000 (25 23:53 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jun 2013 18:25:11 +0000 (26 11:25 -0700)
tree8f9f474d615d2422935543823b617b01b03401e5
parentd1239264f2786d7ea15543b980c6bf6afbc4701a
git-clean: add select by numbers interactive action

Draw a multiple choice menu using `list_and_choose` to select items
to be deleted by numbers.

User can input:

 *  1,5-7 : select 1,5,6,7 items to be deleted
 *  *     : select all items to be deleted
 *  -*    : unselect all, nothing will be deleted
 *        : (empty) finish selecting, and return back to main menu

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