* [PATCH] Add another verbosity level to git-fetch
@ 2007-05-23 21:31 Alex Riesen
2007-05-23 21:53 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Alex Riesen @ 2007-05-23 21:31 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano, Michael S. Tsirkin
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add another verbosity level to git-fetch
2007-05-23 21:31 [PATCH] Add another verbosity level to git-fetch Alex Riesen
@ 2007-05-23 21:53 ` Junio C Hamano
2007-05-23 22:47 ` Alex Riesen
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-05-23 21:53 UTC (permalink / raw)
To: Alex Riesen; +Cc: git, Michael S. Tsirkin
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Add another verbosity level to git-fetch
2007-05-23 21:53 ` Junio C Hamano
@ 2007-05-23 22:47 ` Alex Riesen
0 siblings, 0 replies; 3+ messages in thread
From: Alex Riesen @ 2007-05-23 22:47 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git, Michael S. Tsirkin
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-23 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 21:31 [PATCH] Add another verbosity level to git-fetch Alex Riesen
2007-05-23 21:53 ` Junio C Hamano
2007-05-23 22:47 ` Alex Riesen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).