From 45604a50d9c66a4a0cd82ba0b8687644c92d3743 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 18 Sep 2010 13:17:46 +0200 Subject: [PATCH] by default, rm untracked files --- all | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/all b/all index 9a5b07e3..1d359e8a 100755 --- 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 -- 2.39.2