summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Marcus Griep <marcus@griep.us>2008-08-15 13:59:28 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-08-16 02:32:01 -0700
commit2946cccfdf2fba591b6af61ad6e658bb927832af (patch)
treef4f2a271e66499af3250544a795a0a9756d92d08 /contrib
parentFix t3700 on filesystems which do not support question marks in names (diff)
downloadtgif-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')
-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 ()