From: Shawn O. Pearce Date: Tue, 22 Sep 2009 15:28:46 GMT Subject: Re: [PATCH 4/4] bash: teach 'git checkout' options Message-ID: <20090922152846.GQ14660@spearce.org> In-Reply-To: <7c8c4f6a4c581bcba101b8ca467d241738aa376e.1253009868.git.szeder@ira.uka.de> SZEDER G??bor wrote: > @@ -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= --patch If 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.