threads / patch / 15257

patchbash-completion: Add all submodule subcommands to the completion list

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

## tl;dr

One message between Aug 28, 2008 and Aug 28, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Matthias Kestenholz· Aug 28, 2008, 08:57 UTC · lore
Signed-off-by: Matthias Kestenholz <mk@spinlock.ch>
---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to contrib/completion/git-completion.bash +1 −1
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

← back to recent threads