Skip to content

Commit

Permalink
bash: teach 'git checkout' options
Browse files Browse the repository at this point in the history
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
SZEDER Gábor authored and Shawn O. Pearce committed Sep 25, 2009
1 parent efe47f8 commit e648f8b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,21 @@ _git_checkout ()
{
__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 ()
Expand Down

0 comments on commit e648f8b

Please sign in to comment.