From: Shawn O. Pearce Date: Fri, 15 Aug 2008 18:00:59 GMT Subject: Re: [PATCH v2] bash-completion: Add non-command git help files to bash-completion Message-ID: <20080815180059.GA17399@spearce.org> In-Reply-To: <1218823168-1753-1-git-send-email-marcus@griep.us> Marcus Griep wrote: > Git allows access to the gitattributes man page via `git help attributes`, > but this is not discoverable via the bash-completion mechanism. This > patch adds all current non-command man pages to the completion candidate > list. > > Signed-off-by: Marcus Griep Acked-by: Shawn O. Pearce > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index c0bf7aa..158b912 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -885,7 +885,11 @@ _git_help () > return > ;; > esac > - __gitcomp "$(__git_all_commands)" > + __gitcomp "$(__git_all_commands) > + attributes cli core-tutorial cvs-migration > + diffcore gitk glossary hooks ignore modules > + repository-layout tutorial tutorial-2 > + " > } > > _git_init () -- Shawn.