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

[PATCH] Add another verbosity level to git-fetch

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 23, 2007, 21:31 UTC
Message-ID
<20070523213113.GF2554@steel.home>
Use "-v -v" to run git-fetch-pack in verbose mode.
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
Otherwise there is no way to show connect messages for git-fetch
 git-fetch.sh |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/git-fetch.sh b/git-fetch.sh
index 0e05cf1..6d3a346 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -61,7 +61,7 @@ do
 		quiet=--quiet
 		;;
 	-v|--verbose)
-		verbose=Yes
+		verbose="$verbose"Yes
 		;;
 	-k|--k|--ke|--kee|--keep)
 		keep='-k -k'
@@ -201,8 +201,14 @@ fetch_all_at_once () {
 			echo "$ls_remote_result" | \
 				git-fetch--tool pick-rref "$rref" "-"
 		else
+			flags=
+			case $verbose in
+			YesYes*)
+			    flags="-v"
+			    ;;
+			esac
 			git-fetch-pack --thin $exec $keep $shallow_depth \
-				$quiet $no_progress "$remote" $rref ||
+				$quiet $no_progress $flags "$remote" $rref ||
 			echo failed "$remote"
 		fi
 	fi
-- 
1.5.2.58.g7a94-dirty
Next: Junio C Hamano
Message 1 of 3 in “Add another verbosity level to git-fetch”
  1. Add another verbosity level to git-fetchAlex Riesen, May 23, 2007
  2. Junio C HamanoMay 23, 2007
  3. Alex RiesenMay 23, 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.