git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-submodule should obey --quiet for subcommands

From
Jonathan del Strother <maillist@steelskies.com>
Date
Sep 21, 2009, 16:46 UTC
Message-ID
<57518fd10909210946p425d275fy76362a4b2ccc0e05@mail.gmail.com>
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: Jonathan del Strother
Message 1 of 5 in “git-submodule should obey --quiet for subcommands”
  1. git-submodule should obey --quiet for subcommandsJonathan del Strother, Sep 21, 2009
  2. Jonathan del StrotherSep 23, 2009
  3. Nanako ShiraishiSep 24, 2009
  4. Jonathan del StrotherSep 24, 2009
  5. Jonathan del StrotherSep 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.