Skip to content

Commit

Permalink
Add another verbosity level to git-fetch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Riesen authored and Junio C Hamano committed May 25, 2007
1 parent ba50532 commit 684f674
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ do
quiet=--quiet
;;
-v|--verbose)
verbose=Yes
verbose="$verbose"Yes
;;
-k|--k|--ke|--kee|--keep)
keep='-k -k'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 684f674

Please sign in to comment.