Skip to contentSkip to conversation

Add another verbosity level to git-fetch

PATCH In review Alex Riesen 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add another verbosity level to git-fetch

Use "-v -v" to run git-fetch-pack in verbose mode.

---

Otherwise there is no way to show connect messages for git-fetch

 git-fetch.sh |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
git-fetch.sh +8 -2
index 0e05cf1..6d3a346 100755
@@ -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
Signature · 1 line
1.5.2.58.g7a94-dirty
#1 lore raw
Quoted 6 lines · Alex Riesen

Use "-v -v" to run git-fetch-pack in verbose mode.

---

Otherwise there is no way to show connect messages for git-fetch

How about just a single -v to do so?

#2 lore raw

Junio C Hamano, Wed, May 23, 2007 23:53:13 +0200:

Quoted 9 lines
Quoted 6 lines

Use "-v -v" to run git-fetch-pack in verbose mode.

---

Otherwise there is no way to show connect messages for git-fetch

How about just a single -v to do so?

Dunno, it looks too verbose for a single -v. Try it