git-clean: add filter by pattern interactive action
commitd1239264f2786d7ea15543b980c6bf6afbc4701a
authorJiang Xin <worldhello.net@gmail.com>
Tue, 25 Jun 2013 15:53:52 +0000 (25 23:53 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jun 2013 18:25:11 +0000 (26 11:25 -0700)
treefc2e9a84199f7a579e915af6266fddf6f9adedeb
parent9f93e4611f72577306e369a64d0a4da847be9751
git-clean: add filter by pattern interactive action

Add a new action for interactive git-clean: filter by pattern. When the
user chooses this action, user can input space-separated patterns (the
same syntax as gitignore), and each clean candidate that matches with
one of the patterns will be excluded from cleaning. When the user feels
it's OK, presses ENTER and backs to the confirmation dialog.

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