X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-remote.perl;h=01cf480221be1e5860bd701d5d17ced25766d38d;hb=ec96e0f6a4244e3bccc745eeb4cb6daa80a347e4;hp=576379912793c9740620892cd3ee1cf7d2f18cfe;hpb=35c49eeae7e71e8554f27958a16405397c69b552;p=git.git diff --git a/git-remote.perl b/git-remote.perl index 576379912..01cf48022 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -258,6 +258,7 @@ sub show_remote { if ($info->{'PUSH'}) { my @pushed = map { s|^refs/heads/||; + s|^\+refs/heads/|+|; s|:refs/heads/|:|; $_; } @{$info->{'PUSH'}}; @@ -318,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') {