Many other commands already have such an option, and I find it practical to see where all the remotes actually come from. Signed-off-by: Alex Riesen <raa.lkml@xxxxxxxxx> --- The $VERBOSE may be even used by some of the subcommands later. git-remote.perl | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/git-remote.perl b/git-remote.perl index b59cafd..449d97b 100755 --- a/git-remote.perl +++ b/git-remote.perl @@ -319,9 +319,14 @@ sub add_usage { exit(1); } +local $VERBOSE = 0; +@ARGV = grep { $VERBOSE=1,0 if $_ eq '-v' or $_ eq '--verbose' } @ARGV; + if (!@ARGV) { for (sort keys %$remote) { - print "$_\n"; + print "$_"; + print "\t$remote->{$_}->{URL}" if $VERBOSE; + print "\n"; } } elsif ($ARGV[0] eq 'show') { -- 1.5.3.rc0.56.g6b87 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html