{"thread":{"id":"8884","subject":"[PATCH] Add -v|--verbose to git remote to show remote url","startedAt":"2007-07-05T22:06:56Z","lastAt":"2007-07-05T22:06:56Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46570","messageId":"20070705220656.GE8751@steel.home","threadId":"8884","inReplyTo":null,"subject":"[PATCH] Add -v|--verbose to git remote to show remote url","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-07-05T22:06:56Z","receivedAt":"2007-07-05T22:06:56Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Many other commands already have such an option, and I find it\npractical to see where all the remotes actually come from.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n\nFixed and tested. Being used.\n\n git-remote.perl |   14 +++++++++++++-\n 1 files changed, 13 insertions(+), 1 deletions(-)\n\ndiff --git a/git-remote.perl b/git-remote.perl\nindex b59cafd..e13d7b9 100755\n--- a/git-remote.perl\n+++ b/git-remote.perl\n@@ -319,9 +319,21 @@ sub add_usage {\n \texit(1);\n }\n \n+local $VERBOSE = 0;\n+@ARGV = grep {\n+\tif ($_ eq '-v' or $_ eq '--verbose') {\n+\t\t$VERBOSE=1;\n+\t\t0\n+\t} else {\n+\t\t1\n+\t}\n+} @ARGV;\n+\n if (!@ARGV) {\n \tfor (sort keys %$remote) {\n-\t\tprint \"$_\\n\";\n+\t\tprint \"$_\";\n+\t\tprint \"\\t$remote->{$_}->{URL}\" if $VERBOSE;\n+\t\tprint \"\\n\";\n \t}\n }\n elsif ($ARGV[0] eq 'show') {\n-- \n1.5.3.rc0.56.g6b87\n"}]}