{"thread":{"id":"8883","subject":"[PATCH] Add -v|--verbose to git remote to show remote url","startedAt":"2007-07-05T21:57:30Z","lastAt":"2007-07-05T22:10:03Z","messageCount":3,"participants":["Alex Riesen","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46568","messageId":"20070705215730.GC8751@steel.home","threadId":"8883","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-05T21:57:30Z","receivedAt":"2007-07-05T21:57:30Z","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\nThe $VERBOSE may be even used by some of the subcommands\nlater.\n\n git-remote.perl |    7 ++++++-\n 1 files changed, 6 insertions(+), 1 deletions(-)\n\ndiff --git a/git-remote.perl b/git-remote.perl\nindex b59cafd..449d97b 100755\n--- a/git-remote.perl\n+++ b/git-remote.perl\n@@ -319,9 +319,14 @@ sub add_usage {\n \texit(1);\n }\n \n+local $VERBOSE = 0;\n+@ARGV = grep { $VERBOSE=1,0 if $_ eq '-v' or $_ eq '--verbose' } @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"},{"id":"46569","messageId":"20070705220247.GD8751@steel.home","threadId":"8883","inReplyTo":"20070705215730.GC8751@steel.home","subject":"Re: [PATCH] Add -v|--verbose to git remote to show remote url","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-07-05T22:02:47Z","receivedAt":"2007-07-05T22:02:47Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Alex Riesen, Thu, Jul 05, 2007 23:57:30 +0200:\n> +local $VERBOSE = 0;\n> +@ARGV = grep { $VERBOSE=1,0 if $_ eq '-v' or $_ eq '--verbose' } @ARGV;\n> +\n\nDo NOT apply: this filters out _all_ of command line.\n"},{"id":"46571","messageId":"7vps36ijt0.fsf@assigned-by-dhcp.cox.net","threadId":"8883","inReplyTo":"20070705220247.GD8751@steel.home","subject":"Re: [PATCH] Add -v|--verbose to git remote to show remote url","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-07-05T22:10:03Z","receivedAt":"2007-07-05T22:10:03Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alex Riesen <raa.lkml@gmail.com> writes:\n\n> Alex Riesen, Thu, Jul 05, 2007 23:57:30 +0200:\n>> +local $VERBOSE = 0;\n>> +@ARGV = grep { $VERBOSE=1,0 if $_ eq '-v' or $_ eq '--verbose' } @ARGV;\n>> +\n>\n> Do NOT apply: this filters out _all_ of command line.\n\nHeh, I was wondering what you were smoking ;-).\n"}]}