Code

bash-completion: Add non-command git help files to bash-completion
authorMarcus Griep <marcus@griep.us>
Fri, 15 Aug 2008 17:59:28 +0000 (13:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Aug 2008 09:32:01 +0000 (02:32 -0700)
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>
contrib/completion/git-completion.bash

index c0bf7aade66b4d434653c885e52d6814d9cdf1c7..158b91284147d50a24d6dadaa7c5085cf0b7cb55 100755 (executable)
@@ -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 ()