From: Marcus Griep Date: Fri, 15 Aug 2008 17:59:28 +0000 (-0400) Subject: bash-completion: Add non-command git help files to bash-completion X-Git-Tag: v1.6.0~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2946cccfdf2fba591b6af61ad6e658bb927832af;p=git.git bash-completion: Add non-command git help files to bash-completion 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index c0bf7aade..158b91284 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 ()