summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2007-05-23 23:31:13 +0200
committerJunio C Hamano <junkio@cox.net>2007-05-24 21:37:03 -0700
commit684f6742512d223ac89310b36eb4e230283eca23 (patch)
treedcf5458198f3fe08867fb63a33607cc932d9bb95
parentba505322a4f0ac052f059e7381b55c4ab8bfeacd (diff)
downloadgit-684f6742512d223ac89310b36eb4e230283eca23.tar.gz
Add another verbosity level to git-fetch
Use "-v -v" to run git-fetch-pack in verbose mode. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-fetch.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/git-fetch.sh b/git-fetch.sh
index 0e05cf1195..6d3a3468b3 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