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

Previous thread: [PATCH 5/5] reflog expire --fix-stale by Junio C Hamano on Saturday, January 6, 2007 - 3:16 am. (1 message)

Next thread: [PATCH] git.el: Don't use --info-only when resolving a file. by Alexandre Julliard on Saturday, January 6, 2007 - 3:20 am. (1 message)
From: Alexandre Julliard
Date: Saturday, January 6, 2007 - 3:19 am

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(-)

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.g5a8e

-- 
Alexandre Julliard
julliard@winehq.org
-

Previous thread: [PATCH 5/5] reflog expire --fix-stale by Junio C Hamano on Saturday, January 6, 2007 - 3:16 am. (1 message)

Next thread: [PATCH] git.el: Don't use --info-only when resolving a file. by Alexandre Julliard on Saturday, January 6, 2007 - 3:20 am. (1 message)