# [PATCH] Add another verbosity level to git-fetch

3 messages from 2007-05-23 to 2007-05-23. Participants: Alex Riesen, Junio C Hamano.
Thread: https://gitlist.dev/t/8286

## Alex Riesen, 2007-05-23 21:31

Subject: [PATCH] Add another verbosity level to git-fetch
Message-ID: <20070523213113.GF2554@steel.home>
URL: https://gitlist.dev/e/20070523213113.GF2554%40steel.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

```

## Junio C Hamano, 2007-05-23 21:53

Subject: Re: [PATCH] Add another verbosity level to git-fetch
Message-ID: <7viraj1a2e.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7viraj1a2e.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20070523213113.GF2554@steel.home>

```
Alex Riesen <raa.lkml@gmail.com> writes:

> 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

How about just a single -v to do so?

```

## Alex Riesen, 2007-05-23 22:47

Subject: Re: [PATCH] Add another verbosity level to git-fetch
Message-ID: <20070523224725.GH2554@steel.home>
URL: https://gitlist.dev/e/20070523224725.GH2554%40steel.home
In-Reply-To: <7viraj1a2e.fsf@assigned-by-dhcp.cox.net>

```
Junio C Hamano, Wed, May 23, 2007 23:53:13 +0200:
> > 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
> 
> How about just a single -v to do so?
> 

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

```
