summaryrefslogtreecommitdiffstats
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorMarcus Griep <marcus@griep.us>2008-08-15 19:59:28 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-16 11:32:01 +0200
commit2946cccfdf2fba591b6af61ad6e658bb927832af (patch)
treef4f2a271e66499af3250544a795a0a9756d92d08 /contrib/completion/git-completion.bash
parentFix t3700 on filesystems which do not support question marks in names (diff)
downloadgit-2946cccfdf2fba591b6af61ad6e658bb927832af.tar.xz
git-2946cccfdf2fba591b6af61ad6e658bb927832af.zip
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 '')
-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 c0bf7aade6..158b912841 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 ()