[PATCH] clean: Introduce -z for machine readable output

2013-04-29 Thread Michael J Gruber
-z makes clean output only the names of paths which are or would be deleted, and separates them with \0. Use as xargs -0 -a (git clean -nz [-d]) rm -ri, e.g., as a quick git clean -i. Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net --- Here's an alternative approach to that problem

Re: [PATCH] clean: Introduce -z for machine readable output

2013-04-29 Thread Matthieu Moy
Michael J Gruber g...@drmicha.warpmail.net writes: -z makes clean output only the names of paths which are or would be deleted, and separates them with \0. My first reaction was: Is it not a job for git ls-files? Actually, you already almost have it: git clean -d = git ls-files