Skip to content

Commit

Permalink
git-clean: use a git-add-interactive compatible UI
Browse files Browse the repository at this point in the history
Rewrite menu using a new method `list_and_choose`, which is borrowed
from `git-add--interactive.perl`. We will use this framework to add
new actions for interactive git-clean later.

Please NOTE:

 * Method `list_and_choose` return an array of integers, and
 * it is up to you to free the allocated memory of the array.
 * The array ends with EOF.
 * If user pressed CTRL-D (i.e. EOF), no selection returned.

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jiang Xin authored and Junio C Hamano committed Jun 26, 2013
1 parent 7a9b0b8 commit 9f93e46
Showing 1 changed file with 427 additions and 29 deletions.
Loading

0 comments on commit 9f93e46

Please sign in to comment.