git-completion: Add git help completion for aliases
authorJakob Pfender <jpfender@elegosoft.com>
Mon, 21 Mar 2011 09:25:06 +0000 (10:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Mar 2011 07:44:47 +0000 (00:44 -0700)
Enable bash completion for "git help <alias>", analogous to "git
<alias>", which was already implemented.

Signed-off-by: Jakob Pfender <jpfender@elegosoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index ccdc172a06bcc55ff5c5c3c1854bb34f84910f90..d2b8746633bdba57b2bfdd137435d9ba95e68e3e 100755 (executable)
@@ -1508,7 +1508,7 @@ _git_help ()
                ;;
        esac
        __git_compute_all_commands
-       __gitcomp "$__git_all_commands
+       __gitcomp "$__git_all_commands $(__git_aliases)
                attributes cli core-tutorial cvs-migration
                diffcore gitk glossary hooks ignore modules
                repository-layout tutorial tutorial-2