{"thread":{"id":"12542","subject":"[PATCH] bash: Add more long options to be completed with \"git --<TAB>\"","startedAt":"2008-03-06T16:52:37Z","lastAt":"2008-03-06T16:52:37Z","messageCount":1,"participants":["Teemu Likonen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"71255","messageId":"1204822357-10210-1-git-send-email-tlikonen@iki.fi","threadId":"12542","inReplyTo":null,"subject":"[PATCH] bash: Add more long options to be completed with \"git --<TAB>\"","fromName":"Teemu Likonen","fromEmail":"tlikonen@iki.fi","sentAt":"2008-03-06T16:52:37Z","receivedAt":"2008-03-06T16:52:37Z","isPatch":true,"sender":{"key":"tlikonen@iki.fi","avatar":null},"body":"Add the following long options to be completed with command \"git\":\n\n\t--paginate\n\t--work-tree=\n\t--help\n\nSigned-off-by: Teemu Likonen <tlikonen@iki.fi>\n---\n\nI'm not at all expert in bash completion code but this seems to work and can be\nuseful.\n\n contrib/completion/git-completion.bash |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 49e6df0..1198547 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1194,11 +1194,14 @@ _git ()\n \t\tcase \"${COMP_WORDS[COMP_CWORD]}\" in\n \t\t--*=*) COMPREPLY=() ;;\n \t\t--*)   __gitcomp \"\n+\t\t\t--paginate\n \t\t\t--no-pager\n \t\t\t--git-dir=\n \t\t\t--bare\n \t\t\t--version\n \t\t\t--exec-path\n+\t\t\t--work-tree=\n+\t\t\t--help\n \t\t\t\"\n \t\t\t;;\n \t\t*)     __gitcomp \"$(__git_commands) $(__git_aliases)\" ;;\n-- \n1.5.4.3.451.g43956\n\n"}]}