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

[PATCH 2/2] Quiet the output from git-init when cloning, if requested.

From
Jeffrey C. Ollie <jeff@ocjtech.us>
Date
Jun 7, 2007, 12:50 UTC
Message-ID
<11812206302958-git-send-email-jeff@ocjtech.us>
In-Reply-To
<11812206303473-git-send-email-jeff@ocjtech.us>
From: Jeffrey C. Ollie <jeff@ocjtech.us>

Now that git-init has an option to quiet itself, use it if the -q option was specified on the clone command line.

Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
---
 git-clone.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-clone.sh b/git-clone.sh
index fdd354f..4cc09e3 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -184,7 +184,7 @@ yes)
 	GIT_DIR="$D" ;;
 *)
 	GIT_DIR="$D/.git" ;;
-esac && export GIT_DIR && git-init ${template+"$template"} || usage
+esac && export GIT_DIR && git-init $quiet ${template+"$template"} || usage
 
 if test -n "$reference"
 then
-- 
1.5.2.GIT
Previous: Jeffrey C. Ollie
Message 2 of 2 in “Add an option to quiet git-init.”
  1. 1/2 Add an option to quiet git-init.Jeffrey C. Ollie, Jun 7, 2007
  2. 2/2 Quiet the output from git-init when cloning, if requested.Jeffrey C. Ollie, Jun 7, 2007

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.