From: Shawn O. Pearce Date: Mon, 12 Oct 2009 14:27:10 GMT Subject: Re: [PATCH] bash completion: complete refs for git-grep Message-ID: <20091012142710.GI9261@spearce.org> In-Reply-To: <9f58ba1e7db9702d1b0594a8016c204e3d50b72f.1255337776.git.trast@student.ethz.ch> Thomas Rast wrote: > > So I'll roll a simpler patch that just always (before --) completes > > refs instead, if that's ok. Hard to argue with that logic. :-) Acked-by: Shawn O. Pearce > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index 6fd7e1d..b08cd77 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -1048,7 +1048,8 @@ _git_grep () > return > ;; > esac > - COMPREPLY=() > + > + __gitcomp "$(__git_refs)" > } -- Shawn.