From: Jonathan del Strother <maillist@steelskies.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: [PATCH] git-submodule should obey --quiet for subcommands
Date: Mon, 21 Sep 2009 17:46:33 +0100 [thread overview]
Message-ID: <57518fd10909210946p425d275fy76362a4b2ccc0e05@mail.gmail.com> (raw)
Make sure that --quiet is passed through to git-clone & git-fetch.
Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv>
---
clone & fetch are extremely noisy - perhaps something like the following?
git-submodule.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/git-submodule.sh b/git-submodule.sh
index bfbd36b..1e1066e 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -106,9 +106,9 @@ module_clone()
if test -n "$reference"
then
- git-clone "$reference" -n "$url" "$path"
+ git-clone ${GIT_QUIET:+-q} "$reference" -n "$url" "$path"
else
- git-clone -n "$url" "$path"
+ git-clone ${GIT_QUIET:+-q} -n "$url" "$path"
fi ||
die "Clone of '$url' into submodule path '$path' failed"
}
@@ -450,7 +450,7 @@ cmd_update()
if test -z "$nofetch"
then
(unset GIT_DIR; cd "$path" &&
- git-fetch) ||
+ git-fetch ${GIT_QUIET:+-q}) ||
die "Unable to fetch in submodule path '$path'"
fi
--
1.6.5.rc1.44.ga1675.dirty
next reply other threads:[~2009-09-21 16:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-21 16:46 Jonathan del Strother [this message]
2009-09-23 21:33 ` [PATCH] git-submodule should obey --quiet for subcommands Jonathan del Strother
2009-09-24 5:31 ` Nanako Shiraishi
2009-09-24 7:34 ` Jonathan del Strother
2009-09-24 9:15 ` Jonathan del Strother
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57518fd10909210946p425d275fy76362a4b2ccc0e05@mail.gmail.com \
--to=maillist@steelskies.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).