From: Brandon Casey Date: Mon, 08 Jun 2009 16:42:15 GMT Subject: Re: [PATCH 2/2] bash: add support for 'git stash pop --index' option Message-ID: In-Reply-To: <3456b3a568969b2e0451cdc7a9beebfeb5763039.1244475542.git.szeder@ira.uka.de> SZEDER Gábor wrote: > Signed-off-by: SZEDER Gábor > --- > contrib/completion/git-completion.bash | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index fa899eb..480d85e 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -1887,7 +1887,10 @@ _git_stash () > apply,--*) > __gitcomp "--index" > ;; > - show,--*|drop,--*|pop,--*|branch,--*) > + pop,--*) > + __gitcomp "--index" > + ;; > + show,--*|drop,--*|branch,--*) > COMPREPLY=() > ;; > show,*|apply,*|drop,*|pop,*|branch,*) pop takes the same options as apply, so you may want to have just one case statement for the two options. Like: apply,--*|pop,--*) -brandon