aboutsummaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorMarcus Griep <marcus@griep.us>2008-08-15 13:59:28 -0400
committerJunio C Hamano <gitster@pobox.com>2008-08-16 02:32:01 -0700
commit2946cccfdf2fba591b6af61ad6e658bb927832af (patch)
treef4f2a271e66499af3250544a795a0a9756d92d08 /contrib/completion
parent8134a003e06b5f216cdc1f14acc70d8cab284cf9 (diff)
downloadgit-2946cccfdf2fba591b6af61ad6e658bb927832af.tar.gz
git-2946cccfdf2fba591b6af61ad6e658bb927832af.tar.xz
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 <marcus@griep.us> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion')
-rwxr-xr-xcontrib/completion/git-completion.bash6
1 files changed, 5 insertions, 1 deletions
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 ()