X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-clean.sh;h=db177a7886b6407b4c4ad7b778a1ae99471355ac;hb=9e2586ff2f8b2b3f5bbdd7ad47af0db6abf0f6f8;hp=bb56264e046c906c529c712b36db239dd7ba99e9;hpb=47e68cd803d9dace40984ea965afb54a72609a91;p=git.git diff --git a/git-clean.sh b/git-clean.sh index bb56264e0..db177a788 100755 --- a/git-clean.sh +++ b/git-clean.sh @@ -14,13 +14,13 @@ When optional ... arguments are given, the paths affected are further limited to those that match them.' SUBDIRECTORY_OK=Yes . git-sh-setup +require_work_tree ignored= ignoredonly= cleandir= -quiet= -rmf="rm -f" -rmrf="rm -rf" +rmf="rm -f --" +rmrf="rm -rf --" rm_refuse="echo Not removing" echo1="echo" @@ -31,14 +31,13 @@ do cleandir=1 ;; -n) - quiet=1 rmf="echo Would remove" rmrf="echo Would remove" rm_refuse="echo Would not remove" echo1=":" ;; -q) - quiet=1 + echo1=":" ;; -x) ignored=1