From: Shawn O. Pearce Date: Fri, 25 Jul 2008 20:34:10 GMT Subject: Re: [PATCH] bash: offer only paths after '--' for 'git checkout' Message-ID: <20080725203410.GA23202@spearce.org> In-Reply-To: <1216813762-23511-2-git-send-email-szeder@ira.uka.de> SZEDER GGGbor wrote: > Commit d773c631 (bash: offer only paths after '--', 2008-07-08) did the > same for several other git commands, but 'git checkout' went unnoticed. > > Signed-off-by: SZEDER Gábor Acked-by: Shawn O. Pearce > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index 2edb341..9b51fda 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -626,6 +626,8 @@ _git_bundle () > > _git_checkout () > { > + __git_has_doubledash && return > + > __gitcomp "$(__git_refs)" > } > -- Shawn.