add a git-mrproper script which will *delete* all unversioned files

This commit is contained in:
Christian Thaeter 2007-06-22 04:25:28 +02:00
parent 9c4054b20c
commit a37d29c4ee

11
admin/git-mrproper.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
if test "$1" = "yes"; then
git ls-files -o | xargs rm -f
else
(
echo "'git-mrproper.sh yes'"
echo "would delete following files:"
echo
git ls-files -o | while read file; do echo " $file"; done
) | less
fi