Re: [PATCH 4/4] bash: teach 'git checkout' options
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Sep 22, 2009, 15:28 UTC
- Message-ID
- <20090922152846.GQ14660@spearce.org>
- In-Reply-To
- <7c8c4f6a4c581bcba101b8ca467d241738aa376e.1253009868.git.szeder@ira.uka.de>
SZEDER G??bor <szeder@ira.uka.de> wrote:
Show 11 quoted lines
> @@ -809,7 +809,18 @@ _git_checkout ()
> {
> __git_has_doubledash && return
>
> - __gitcomp "$(__git_refs)"
> + local cur="${COMP_WORDS[COMP_CWORD]}"
> + case "$cur" in
> + --*)
> + __gitcomp "
> + --quiet --ours --theirs --track --no-track --merge
> + --conflict= --patchIf we are completing long options, shouldn't we also complete the supported values for --conflict? According to the docs, this is 'merge' and 'diff3'.
-- Shawn.