X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-remote.perl;h=01cf480221be1e5860bd701d5d17ced25766d38d;hb=4fb5fd5d301;hp=b59cafdf87f7a800f85b6b99fc0344c7102e892a;hpb=90ac368afd75c9a53c6d953a693380369a41f8db;p=git.git diff --git a/git-remote.perl b/git-remote.perl index b59cafdf8..01cf48022 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -319,9 +319,21 @@ sub add_usage { exit(1); } +local $VERBOSE = 0; +@ARGV = grep { + if ($_ eq '-v' or $_ eq '--verbose') { + $VERBOSE=1; + 0 + } else { + 1 + } +} @ARGV; + if (!@ARGV) { for (sort keys %$remote) { - print "$_\n"; + print "$_"; + print "\t$remote->{$_}->{URL}" if $VERBOSE; + print "\n"; } } elsif ($ARGV[0] eq 'show') {