Git development
 help / color / mirror / Atom feed
* [PATCH] git-repack -- respect -q and be quiet
@ 2006-06-24  9:41 Martin Langhoff
  0 siblings, 0 replies; only message in thread
From: Martin Langhoff @ 2006-06-24  9:41 UTC (permalink / raw)
  To: git, junkio; +Cc: Martin Langhoff

git-repack was passing the -q along to pack-objects but ignoring it
itself. Correct the oversight.
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
---
 git-repack.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/git-repack.sh b/git-repack.sh
index 4fb3f26..eb75c8c 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -49,8 +49,9 @@ name=$(git-rev-list --objects --all $rev
 if [ -z "$name" ]; then
 	echo Nothing new to pack.
 else
-	echo "Pack pack-$name created."
-
+	if test "$quiet" != '-q'; then
+	    echo "Pack pack-$name created."
+	fi
 	mkdir -p "$PACKDIR" || exit
 
 	mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" &&
-- 
1.4.1.rc1.g59c8

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-24  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-24  9:41 [PATCH] git-repack -- respect -q and be quiet Martin Langhoff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox