From a37d29c4eefbc31ec216fffb43f7ea4b21c268cb Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Fri, 22 Jun 2007 04:25:28 +0200 Subject: [PATCH] add a git-mrproper script which will *delete* all unversioned files --- admin/git-mrproper.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 admin/git-mrproper.sh diff --git a/admin/git-mrproper.sh b/admin/git-mrproper.sh new file mode 100755 index 000000000..46184161a --- /dev/null +++ b/admin/git-mrproper.sh @@ -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