Re: [PATCH] clean: Introduce -z for machine readable output
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Apr 29, 2013, 14:45 UTC
- Message-ID
- <vpqy5c1xuof.fsf@grenoble-inp.fr>
- In-Reply-To
- <6733a9080da07ace27c3252de2399be339b4e349.1367245712.git.git@drmicha.warpmail.net>
Michael J Gruber <git@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 --exclude-standard --directory -o git clean -dx => git ls-files -z --exclude-standard --directory -io
OTOH, the "git clean" without -d are not exposed directly AFAICT, and the set of options of "git clean" may make more sense.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/