by default, rm untracked files
authorRudolf Polzer <divverent@alientrap.org>
Sat, 18 Sep 2010 11:17:46 +0000 (13:17 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 18 Sep 2010 11:17:46 +0000 (13:17 +0200)
all

diff --git a/all b/all
index 9a5b07e3e5534d1e8386bdbbb5ac82ec5bc7534b..1d359e8a893bc86016e213cf460ad4e445aef6c3 100755 (executable)
--- a/all
+++ b/all
@@ -902,6 +902,7 @@ case "$cmd" in
                # usage:
                #   ./all clean [-m] [-f | -fu | -fU] [-r] [-D]
                #   ./all clean --reclone
+               found=false
                while :; do
                        if [ x"$1" = x"--reclone" ]; then
                                force=true
@@ -933,8 +934,12 @@ case "$cmd" in
                        else
                                break
                        fi
+                       found=true
                        shift
                done
+               if ! $found; then
+                       rmuntracked=true
+               fi
                for d in $repos; do
                        verbose cd "$d0/$d"
                        if $gotoupstream; then