Code

bash-completion: Add all submodule subcommands to the completion list
authorMatthias Kestenholz <mk@spinlock.ch>
Thu, 28 Aug 2008 08:57:55 +0000 (10:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2008 03:39:43 +0000 (20:39 -0700)
Signed-off-by: Matthias Kestenholz <mk@spinlock.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 89858c237eaca5a5fb7e89d716577c0ef84dd086..4f64f8ab7d5860391ddbf0909edcfcfe9073a282 100755 (executable)
@@ -1483,7 +1483,7 @@ _git_submodule ()
 {
        __git_has_doubledash && return
 
-       local subcommands="add status init update"
+       local subcommands="add status init update summary foreach sync"
        if [ -z "$(__git_find_subcommand "$subcommands")" ]; then
                local cur="${COMP_WORDS[COMP_CWORD]}"
                case "$cur" in