{"thread":{"id":"6698","subject":"[PATCH 1/6] bash: Support completion on git-cherry.","startedAt":"2007-02-05T20:44:22Z","lastAt":"2007-02-05T20:44:22Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"33662","messageId":"20070205204422.GA8824@spearce.org","threadId":"6698","inReplyTo":null,"subject":"[PATCH 1/6] bash: Support completion on git-cherry.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-02-05T20:44:22Z","receivedAt":"2007-02-05T20:44:22Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"I just realized I did not support ref name completion for git-cherry.\nThis tool is just too useful to contributors who submit patches\nupstream by email; completion support for it is very handy.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n contrib/completion/git-completion.bash |    8 ++++++++\n 1 files changed, 8 insertions(+), 0 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 2387506..c22ff48 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -415,6 +415,11 @@ _git_checkout ()\n \t__gitcomp \"$(__git_refs)\"\n }\n \n+_git_cherry ()\n+{\n+\t__gitcomp \"$(__git_refs)\"\n+}\n+\n _git_cherry_pick ()\n {\n \tlocal cur=\"${COMP_WORDS[COMP_CWORD]}\"\n@@ -893,6 +898,7 @@ _git ()\n \tapply)       _git_apply ;;\n \tbranch)      _git_branch ;;\n \tcheckout)    _git_checkout ;;\n+\tcherry)      _git_cherry ;;\n \tcherry-pick) _git_cherry_pick ;;\n \tcommit)      _git_commit ;;\n \tconfig)      _git_config ;;\n@@ -936,6 +942,7 @@ complete -o default -o nospace -F _git_am git-am\n complete -o default -o nospace -F _git_apply git-apply\n complete -o default -o nospace -F _git_branch git-branch\n complete -o default -o nospace -F _git_checkout git-checkout\n+complete -o default -o nospace -F _git_cherry git-cherry\n complete -o default -o nospace -F _git_cherry_pick git-cherry-pick\n complete -o default -o nospace -F _git_commit git-commit\n complete -o default -o nospace -F _git_diff git-diff\n@@ -967,6 +974,7 @@ complete -o default -o nospace -F _git_add git-add.exe\n complete -o default -o nospace -F _git_apply git-apply.exe\n complete -o default -o nospace -F _git git.exe\n complete -o default -o nospace -F _git_branch git-branch.exe\n+complete -o default -o nospace -F _git_cherry git-cherry.exe\n complete -o default -o nospace -F _git_diff git-diff.exe\n complete -o default -o nospace -F _git_diff_tree git-diff-tree.exe\n complete -o default -o nospace -F _git_format_patch git-format-patch.exe\n-- \n1.5.0.rc3.58.g79812\n"}]}