{"thread":{"id":"31500","subject":"[PATCH] completion: git branch --set-upstream-to=","startedAt":"2012-09-11T11:58:30Z","lastAt":"2012-09-12T10:44:34Z","messageCount":4,"participants":["Michael J Gruber","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"198770","messageId":"bd9d638e84e7e142e94b71213bed2126ea1f1951.1347364675.git.git@drmicha.warpmail.net","threadId":"31500","inReplyTo":null,"subject":"[PATCH] completion: git branch --set-upstream-to=","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2012-09-11T11:58:30Z","receivedAt":"2012-09-11T11:58:30Z","isPatch":true,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Remove the deprecated --set-upstream from completion suggestions and add\nthe new --set-upstream-to=, offering all refs for completion like in\nsimilar cases.\n\nSigned-off-by: Michael J Gruber <git@drmicha.warpmail.net>\n---\n contrib/completion/git-completion.bash | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 222b804..625d767 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -875,11 +875,14 @@ _git_branch ()\n \tdone\n \n \tcase \"$cur\" in\n+\t--set-upstream-to=*)\n+\t\t__gitcomp \"$(__git_refs)\" \"\" \"${cur##--set-upstream-to=}\"\n+\t\t;;\n \t--*)\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 --list\n+\t\t\t--set-upstream-to= --edit-description --list\n \t\t\t\"\n \t\t;;\n \t*)\n-- \n1.7.12.443.g84e0989\n"},{"id":"198799","messageId":"7v627kiitq.fsf@alter.siamese.dyndns.org","threadId":"31500","inReplyTo":"bd9d638e84e7e142e94b71213bed2126ea1f1951.1347364675.git.git@drmicha.warpmail.net","subject":"Re: [PATCH] completion: git branch --set-upstream-to=","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-09-11T17:13:21Z","receivedAt":"2012-09-11T17:13:21Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks; I picked up $gmane/204633 but forgot to queue.\n"},{"id":"198803","messageId":"7vliggh2qk.fsf@alter.siamese.dyndns.org","threadId":"31500","inReplyTo":"7v627kiitq.fsf@alter.siamese.dyndns.org","subject":"Re: [PATCH] completion: git branch --set-upstream-to=","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-09-11T17:46:11Z","receivedAt":"2012-09-11T17:46:11Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Junio C Hamano <gitster@pobox.com> writes:\n\n> Thanks; I picked up $gmane/204633 but forgot to queue.\n\n... so this has been reduced to:\n\n-- >8 --\nFrom: Michael J Gruber <git@drmicha.warpmail.net>\nDate: Tue, 11 Sep 2012 13:58:30 +0200\nSubject: [PATCH] completion: complete branch name for \"branch --set-upstream-to=\"\n\nSigned-off-by: Michael J Gruber <git@drmicha.warpmail.net>\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n contrib/completion/git-completion.bash | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 4a4d30a..e48cf80 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -875,6 +875,9 @@ _git_branch ()\n \tdone\n \n \tcase \"$cur\" in\n+\t--set-upstream-to=*)\n+\t\t__gitcomp \"$(__git_refs)\" \"\" \"${cur##--set-upstream-to=}\"\n+\t\t;;\n \t--*)\n \t\t__gitcomp \"\n \t\t\t--color --no-color --verbose --abbrev= --no-abbrev\n-- \n1.7.12\n"},{"id":"198826","messageId":"50506792.4070906@drmicha.warpmail.net","threadId":"31500","inReplyTo":"7v627kiitq.fsf@alter.siamese.dyndns.org","subject":"Re: [PATCH] completion: git branch --set-upstream-to=","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2012-09-12T10:44:34Z","receivedAt":"2012-09-12T10:44:34Z","isPatch":true,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Junio C Hamano venit, vidit, dixit 11.09.2012 19:13:\n> Thanks; I picked up $gmane/204633 but forgot to queue.\n\nI missed that one, thanks for reducing appropriately.\n\nMichael\n"}]}