threads / patch / 6154

patchgit-clean: Fix the -q option.

Subject: [PATCH] git-clean: Fix the -q option.

## tl;dr

One message between Dec 30, 2006 and Dec 30, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Alexandre Julliard· Dec 30, 2006, 11:47 UTC · lore

The 'quiet' flag is set by -q, but it's not used anywhere. Remove it and set the 'echo1' variable instead.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
 git-clean.sh |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
Show changes to git-clean.sh +1 −3
diff --git a/git-clean.sh b/git-clean.sh
index 3834323..071b974 100755
--- a/git-clean.sh
+++ b/git-clean.sh
@@ -18,7 +18,6 @@ SUBDIRECTORY_OK=Yes
 ignored=
 ignoredonly=
 cleandir=
-quiet=
 rmf="rm -f --"
 rmrf="rm -rf --"
 rm_refuse="echo Not removing"
@@ -31,14 +30,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
-- 
1.5.0.rc0.g3710-dirty

-- 
Alexandre Julliard
julliard@winehq.org

← back to recent threads