git-clean: refactor git-clean into two phases
commit396049e5fb62ea921379d02133e1ff00cc47bb3f
authorJiang Xin <worldhello.net@gmail.com>
Tue, 25 Jun 2013 15:53:47 +0000 (25 23:53 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jun 2013 18:25:11 +0000 (26 11:25 -0700)
treeef170383b2699fe5fb18aa09ea5dc484e3d11051
parente9a820cefde2170840fbcdf7c4b74369988869dc
git-clean: refactor git-clean into two phases

Before introducing interactive git-clean, refactor git-clean operations
into two phases:

 * hold cleaning items in del_list,
 * and remove them in a separate loop at the end.

We will introduce interactive git-clean between the two phases. The
interactive git-clean will show what would be done and must confirm
before do real cleaning.

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