bash: teach 'git checkout' options
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
efe47f8f2c
commit
e648f8b6d0
@ -810,7 +810,21 @@ _git_checkout ()
|
|||||||
{
|
{
|
||||||
__git_has_doubledash && return
|
__git_has_doubledash && return
|
||||||
|
|
||||||
__gitcomp "$(__git_refs)"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
case "$cur" in
|
||||||
|
--conflict=*)
|
||||||
|
__gitcomp "diff3 merge" "" "${cur##--conflict=}"
|
||||||
|
;;
|
||||||
|
--*)
|
||||||
|
__gitcomp "
|
||||||
|
--quiet --ours --theirs --track --no-track --merge
|
||||||
|
--conflict= --patch
|
||||||
|
"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
__gitcomp "$(__git_refs)"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_git_cherry ()
|
_git_cherry ()
|
||||||
|
Loading…
Reference in New Issue
Block a user