{"thread":{"id":"44839","subject":"[PATCH 1/2] completion: add bash completion for 'git rev-list'","startedAt":"2017-01-09T08:56:11Z","lastAt":"2017-01-09T08:56:11Z","messageCount":1,"participants":["Denton Liu"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"309006","messageId":"20170109085603.GA496@arch-attack.localdomain","threadId":"44839","inReplyTo":null,"subject":"[PATCH 1/2] completion: add bash completion for 'git rev-list'","fromName":"Denton Liu","fromEmail":"liu.denton@gmail.com","sentAt":"2017-01-09T08:56:03Z","receivedAt":"2017-01-09T08:56:11Z","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---\n contrib/completion/git-completion.bash | 30 ++++++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 21016bf8d..51832108e 100644\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -2430,6 +2430,36 @@ _git_revert ()\n \t__gitcomp_nl \"$(__git_refs)\"\n }\n \n+__git_rev_list_options=\"\n+ --max-count= --skip= --max-age= --min-age= --sparse --merges --no-merges\n+ --min-parents= --no-min-parents --max-parents= --no-max-parents --first-parent\n+ --remove-empty --full-history --not --all --branches= --tags= --remotes=\n+ --glob= --ignore-missing --stdin --quiet --topo-order --parents --timestamp\n+ --left-right --left-only --right-only --cherry-mark --cherry-pick --encoding=\n+ --author= --committer= --grep= --regexp-ignore-case --extended-regexp\n+ --fixed-strings --date= --objects --objects-edge --objects-edge-aggressive\n+ --unpacked --pretty --header --bisect --bisect-vars --bisect-all --merge\n+ --reverse --walk-reflogs --no-walk --do-walk --count --use-bitmap-index\n+\"\n+\n+__git_complete_rev_list_command ()\n+{\n+\tcase \"$cur\" in\n+\t--*)\n+\t\t__gitcomp \"$__git_rev_list_options\"\n+\t\treturn 0\n+\t\t;;\n+\tesac\n+\treturn 1\n+}\n+\n+_git_rev_list ()\n+{\n+\t__git_has_doubledash && return\n+\n+\t__git_complete_rev_list_command || __gitcomp_nl \"$(__git_refs)\"\n+}\n+\n _git_rm ()\n {\n \tcase \"$cur\" in\n-- \n2.11.0\n\n"}]}