# [PATCH] bash-completion: Add all submodule subcommands to the completion list

1 messages from 2008-08-28 to 2008-08-28. Participants: Matthias Kestenholz.
Thread: https://gitlist.dev/t/15257

## Matthias Kestenholz, 2008-08-28 08:57

Subject: [PATCH] bash-completion: Add all submodule subcommands to the completion list
Message-ID: <1219913875-20749-1-git-send-email-mk@spinlock.ch>
URL: https://gitlist.dev/e/1219913875-20749-1-git-send-email-mk%40spinlock.ch

```
Signed-off-by: Matthias Kestenholz <mk@spinlock.ch>
---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 89858c2..4f64f8a 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -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
-- 
1.6.0.174.gd789c

```
