{"thread":{"id":"14640","subject":"[PATCH] bash completion: Add long options for 'git rm'","startedAt":"2008-07-23T21:21:08Z","lastAt":"2008-07-23T21:21:08Z","messageCount":1,"participants":["Lee Marlow"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"84606","messageId":"1216848068-49674-1-git-send-email-lee.marlow@gmail.com","threadId":"14640","inReplyTo":null,"subject":"[PATCH] bash completion: Add long options for 'git rm'","fromName":"Lee Marlow","fromEmail":"lee.marlow@gmail.com","sentAt":"2008-07-23T21:21:08Z","receivedAt":"2008-07-23T21:21:08Z","isPatch":true,"sender":{"key":"lee.marlow@gmail.com","avatar":"https://gravatar.com/avatar/231170f3c8456cf1af984d30d09f35c5509b5f81494c81fa69dc7a1027473fc0?d=mp&s=160"},"body":"Options added: --cached --dry-run --ignore-unmatch --quiet\n\nSigned-off-by: Lee Marlow <lee.marlow@gmail.com>\n---\n contrib/completion/git-completion.bash |   15 +++++++++++++++\n 1 files changed, 15 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 2edb341..4b7ef69 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1170,6 +1170,20 @@ _git_reset ()\n \t__gitcomp \"$(__git_refs)\"\n }\n \n+_git_rm ()\n+{\n+\t__git_has_doubledash && return\n+\n+\tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n+\tcase \"$cur\" in\n+\t--*)\n+\t\t__gitcomp \"--cached --dry-run --ignore-unmatch --quiet\"\n+\t\treturn\n+\t\t;;\n+\tesac\n+\tCOMPREPLY=()\n+}\n+\n _git_shortlog ()\n {\n \t__git_has_doubledash && return\n@@ -1425,6 +1439,7 @@ _git ()\n \trebase)      _git_rebase ;;\n \tremote)      _git_remote ;;\n \treset)       _git_reset ;;\n+\trm)          _git_rm ;;\n \tsend-email)  _git_send_email ;;\n \tshortlog)    _git_shortlog ;;\n \tshow)        _git_show ;;\n-- \n1.6.0.rc0.14.g95f8\n"}]}