{"thread":{"id":"29637","subject":"[PATCH] completion: --list option for git-branch","startedAt":"2012-02-15T20:36:58Z","lastAt":"2012-02-16T18:07:37Z","messageCount":3,"participants":["Ralf Thielow","Zbigniew Jędrzejewski-Szmek","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"184782","messageId":"1329338218-9822-1-git-send-email-ralf.thielow@googlemail.com","threadId":"29637","inReplyTo":null,"subject":"[PATCH] completion: --list option for git-branch","fromName":"Ralf Thielow","fromEmail":"ralf.thielow@googlemail.com","sentAt":"2012-02-15T20:36:58Z","receivedAt":"2012-02-15T20:36:58Z","isPatch":true,"sender":{"key":"ralf.thielow@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1275832?v=4"},"body":"Signed-off-by: Ralf Thielow <ralf.thielow@googlemail.com>\n---\n contrib/completion/git-completion.bash |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex d7367e9..1505cff 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1137,7 +1137,7 @@ _git_branch ()\n \t\t__gitcomp \"\n \t\t\t--color --no-color --verbose --abbrev= --no-abbrev\n \t\t\t--track --no-track --contains --merged --no-merged\n-\t\t\t--set-upstream --edit-description\n+\t\t\t--set-upstream --edit-description --list\n \t\t\t\"\n \t\t;;\n \t*)\n-- \n1.7.9.1\n"},{"id":"184820","messageId":"4F3CCC4A.5010100@in.waw.pl","threadId":"29637","inReplyTo":"1329338218-9822-1-git-send-email-ralf.thielow@googlemail.com","subject":"Re: [PATCH] completion: --list option for git-branch","fromName":"Zbigniew Jędrzejewski-Szmek","fromEmail":"zbyszek@in.waw.pl","sentAt":"2012-02-16T09:28:42Z","receivedAt":"2012-02-16T09:28:42Z","isPatch":true,"sender":{"key":"zbyszek@in.waw.pl","avatar":"https://avatars.githubusercontent.com/u/349618?v=4"},"body":"On 02/15/2012 09:36 PM, Ralf Thielow wrote:\n> Signed-off-by: Ralf Thielow<ralf.thielow@googlemail.com>\n> ---\n>   contrib/completion/git-completion.bash |    2 +-\n>   1 files changed, 1 insertions(+), 1 deletions(-)\n>\n> diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\n> index d7367e9..1505cff 100755\n> --- a/contrib/completion/git-completion.bash\n> +++ b/contrib/completion/git-completion.bash\n> @@ -1137,7 +1137,7 @@ _git_branch ()\n>   \t\t__gitcomp \"\n>   \t\t\t--color --no-color --verbose --abbrev= --no-abbrev\n>   \t\t\t--track --no-track --contains --merged --no-merged\n> -\t\t\t--set-upstream --edit-description\n> +\t\t\t--set-upstream --edit-description --list\n>   \t\t\t\"\n>   \t\t;;\n>   \t*)\nNormally one would use just a bare 'git branch' to list branches.\nWhy would you want to use --list in an interactive environment (as \nopposed to a script)? Isn't it better not to clutter the completion\noptions with something that the user actually has not need for?\n\nZbyszek\n"},{"id":"184829","messageId":"7vpqdezm6u.fsf@alter.siamese.dyndns.org","threadId":"29637","inReplyTo":"4F3CCC4A.5010100@in.waw.pl","subject":"Re: [PATCH] completion: --list option for git-branch","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-02-16T18:07:37Z","receivedAt":"2012-02-16T18:07:37Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> writes:\n\n> Normally one would use just a bare 'git branch' to list branches.\n> Why would you want to use --list in an interactive environment (as\n> opposed to a script)? Isn't it better not to clutter the completion\n> options with something that the user actually has not need for?\n\n        $ git branch jc/\\*\n        fatal: 'jc/*' is not a valid branch name.\n        $ git branch --list jc/\\*\n          jc/advise-i18n\n          jc/advise-push-default\n          ...\n"}]}