]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
./all clean -f
authorRudolf Polzer <divVerent@alientrap.org>
Mon, 9 Aug 2010 12:01:18 +0000 (14:01 +0200)
committerRudolf Polzer <divVerent@alientrap.org>
Mon, 9 Aug 2010 12:01:18 +0000 (14:01 +0200)
all

diff --git a/all b/all
index bda0c655413daf6142961b7b98762cf5a8a08c21..ef561178b9f8737eeb54b7f8cf1f9600cb811d38 100755 (executable)
--- a/all
+++ b/all
@@ -857,8 +857,15 @@ case "$cmd" in
                echo "$report" | ssh nexuiz@rm.endoftheinternet.org cat '>>' public_html/xonotic-merge-notes.txt
                ;;
        clean)
                echo "$report" | ssh nexuiz@rm.endoftheinternet.org cat '>>' public_html/xonotic-merge-notes.txt
                ;;
        clean)
+               force=false
+               if [ x"$1" = x"-f" ]; then
+                       force=true
+               fi
                for d in $repos; do
                        enter "$d0/$d" verbose
                for d in $repos; do
                        enter "$d0/$d" verbose
+                       if $force; then
+                               git checkout-index -fa
+                       fi
                        case "$d" in
                                .)
                                        git clean -df
                        case "$d" in
                                .)
                                        git clean -df