{"thread":{"id":"21264","subject":"[PATCH] bash: complete more options for 'git rebase'","startedAt":"2009-10-17T09:33:38Z","lastAt":"2009-10-28T07:19:40Z","messageCount":3,"participants":["Björn Gustavsson","Shawn O. Pearce","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"125236","messageId":"4AD98F72.1060901@gmail.com","threadId":"21264","inReplyTo":null,"subject":"[PATCH] bash: complete more options for 'git rebase'","fromName":"Björn Gustavsson","fromEmail":"bgustavsson@gmail.com","sentAt":"2009-10-17T09:33:38Z","receivedAt":"2009-10-17T09:33:38Z","isPatch":true,"sender":{"key":"bgustavsson@gmail.com","avatar":"https://avatars.githubusercontent.com/u/74840?v=4"},"body":"Complete all long options for 'git rebase' except --no-verify\n(probably used very seldom) and the long options corresponding\nto -v, -q, and -f.\n\nSigned-off-by: Björn Gustavsson <bgustavsson@gmail.com>\n---\nI am primarily interested in having the --whitespace= option completed,\nbut while at it I have added completion for the other potentially useful\nlong options.\n\n contrib/completion/git-completion.bash |   12 +++++++++++-\n 1 files changed, 11 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex d3fec32..7c7318c 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1323,8 +1323,18 @@ _git_rebase ()\n \tfi\n \t__git_complete_strategy && return\n \tcase \"$cur\" in\n+\t--whitespace=*)\n+\t\t__gitcomp \"$__git_whitespacelist\" \"\" \"${cur##--whitespace=}\"\n+\t\treturn\n+\t\t;;\n \t--*)\n-\t\t__gitcomp \"--onto --merge --strategy --interactive\"\n+\t\t__gitcomp \"\n+\t\t\t--onto --merge --strategy --interactive\n+\t\t\t--preserve-merges --stat --no-stat\n+\t\t\t--committer-date-is-author-date --ignore-date\n+\t\t\t--ignore-whitespace --whitespace=\n+\t\t\t\"\n+\n \t\treturn\n \tesac\n \t__gitcomp \"$(__git_refs)\"\n-- \n1.6.5.2.gd6127\n"},{"id":"126075","messageId":"20091028003208.GO10505@spearce.org","threadId":"21264","inReplyTo":"4AD98F72.1060901@gmail.com","subject":"Re: [PATCH] bash: complete more options for 'git rebase'","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-10-28T00:32:08Z","receivedAt":"2009-10-28T00:32:08Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Bj??rn Gustavsson <bgustavsson@gmail.com> wrote:\n> Complete all long options for 'git rebase' except --no-verify\n> (probably used very seldom) and the long options corresponding\n> to -v, -q, and -f.\n> \n> Signed-off-by: Bj??rn Gustavsson <bgustavsson@gmail.com>\n\nAcked-by: Shawn O. Pearce <spearce@spearce.org>\n\n> I am primarily interested in having the --whitespace= option completed,\n> but while at it I have added completion for the other potentially useful\n> long options.\n\nIndeed, this would be nice.  :-)\n \n-- \nShawn.\n"},{"id":"126104","messageId":"7viqe0rnn7.fsf@alter.siamese.dyndns.org","threadId":"21264","inReplyTo":"20091028003208.GO10505@spearce.org","subject":"Re: [PATCH] bash: complete more options for 'git rebase'","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-10-28T07:19:40Z","receivedAt":"2009-10-28T07:19:40Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Shawn O. Pearce\" <spearce@spearce.org> writes:\n\n> Bj??rn Gustavsson <bgustavsson@gmail.com> wrote:\n>> Complete all long options for 'git rebase' except --no-verify\n>> (probably used very seldom) and the long options corresponding\n>> to -v, -q, and -f.\n>> \n>> Signed-off-by: Bj�rn Gustavsson <bgustavsson@gmail.com>\n>\n> Acked-by: Shawn O. Pearce <spearce@spearce.org>\n>\n>> I am primarily interested in having the --whitespace= option completed,\n>> but while at it I have added completion for the other potentially useful\n>> long options.\n\nThanks.\n"}]}