summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea81fcc)
raw | patch | inline | side by side (parent: ea81fcc)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 5 Feb 2007 20:44:22 +0000 (15:44 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Feb 2007 21:49:00 +0000 (13:49 -0800) |
I just realized I did not support ref name completion for git-cherry.
This tool is just too useful to contributors who submit patches
upstream by email; completion support for it is very handy.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This tool is just too useful to contributors who submit patches
upstream by email; completion support for it is very handy.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/completion/git-completion.bash | patch | blob | history |
index 466cc32f4ce4254453f2083e5a0619827971410f..b434332bf7c9bbf58ca82ef0b1804441eaf2b65c 100755 (executable)
__gitcomp "$(__git_refs)"
}
+_git_cherry ()
+{
+ __gitcomp "$(__git_refs)"
+}
+
_git_cherry_pick ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
apply) _git_apply ;;
branch) _git_branch ;;
checkout) _git_checkout ;;
+ cherry) _git_cherry ;;
cherry-pick) _git_cherry_pick ;;
commit) _git_commit ;;
config) _git_config ;;
complete -o default -o nospace -F _git_apply git-apply
complete -o default -o nospace -F _git_branch git-branch
complete -o default -o nospace -F _git_checkout git-checkout
+complete -o default -o nospace -F _git_cherry git-cherry
complete -o default -o nospace -F _git_cherry_pick git-cherry-pick
complete -o default -o nospace -F _git_commit git-commit
complete -o default -o nospace -F _git_diff git-diff
complete -o default -o nospace -F _git_apply git-apply.exe
complete -o default -o nospace -F _git git.exe
complete -o default -o nospace -F _git_branch git-branch.exe
+complete -o default -o nospace -F _git_cherry git-cherry.exe
complete -o default -o nospace -F _git_diff git-diff.exe
complete -o default -o nospace -F _git_diff_tree git-diff-tree.exe
complete -o default -o nospace -F _git_format_patch git-format-patch.exe