user-manual: rewrap a few long lines
[gitweb.git] / git-clean.sh
index 3834323bcf479b7e01af4e1f247fb13aac423f90..db177a7886b6407b4c4ad7b778a1ae99471355ac 100755 (executable)
@@ -14,11 +14,11 @@ When optional <paths>... 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 --"
 rm_refuse="echo Not removing"
@@ -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