clean: Introduce -z for machine readable outputclean-z
commitd37323a8008c49c9ce4be5cd1bcb4318d38f2bd5
authorMichael J Gruber <git@drmicha.warpmail.net>
Fri, 2 Dec 2011 09:13:22 +0000 (2 10:13 +0100)
committerMichael J Gruber <git@drmicha.warpmail.net>
Thu, 20 Jun 2013 07:14:46 +0000 (20 09:14 +0200)
tree37e11c5605610047d1c85a49e2801046732f9fd6
parent12cfec846bdac68981fbf455e2a638ddf5a6ef9c
clean: Introduce -z for machine readable output

-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".
Documentation/git-clean.txt
builtin/clean.c