{"thread":{"id":"45275","subject":"[RFC PATCH 2/2] completion: add bash completion for 'filter-branch'","startedAt":"2017-03-03T13:04:21Z","lastAt":"2017-03-03T13:04:21Z","messageCount":1,"participants":["Denton Liu"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"313169","messageId":"20170303123533.GA19539@arch-attack.localdomain","threadId":"45275","inReplyTo":null,"subject":"[RFC PATCH 2/2] completion: add bash completion for 'filter-branch'","fromName":"Denton Liu","fromEmail":"liu.denton@gmail.com","sentAt":"2017-03-03T12:35:33Z","receivedAt":"2017-03-03T13:04:21Z","isPatch":true,"sender":{"key":"liu.denton@gmail.com","avatar":"https://avatars.githubusercontent.com/u/9620836?v=4"},"body":"Signed-off-by: Denton Liu <liu.denton@gmail.com>\n---\nIf the last patch (PATCH 1/2) is not included, we can remove the call to\n__git_complete_rev_list_command.\n---\n contrib/completion/git-completion.bash | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 412485369..933dac78b 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1307,6 +1307,23 @@ _git_fetch ()\n \t__git_complete_remote_or_refspec\n }\n \n+__git_filter_branch_options=\"\n+\t--env-filter --tree-filter --index-filter --parent-filter --msg-filter\n+\t--commit-filter --tag-name-filter --subdirectory-filter --prune-empty\n+\t--original --force\n+\"\n+_git_filter_branch ()\n+{\n+\t__git_has_doubledash && __git_complete_rev_list_command && return\n+\n+\tcase \"$cur\" in\n+\t--*)\n+\t\t__gitcomp \"$__git_filter_branch_options\"\n+\t\treturn\n+\t\t;;\n+\tesac\n+}\n+\n __git_format_patch_options=\"\n \t--stdout --attach --no-attach --thread --thread= --no-thread\n \t--numbered --start-number --numbered-files --keep-subject --signoff\n-- \n2.12.0.1.g5415fdfc5.dirty\n\n"}]}