From 3548aae552c38254b0dc327a75990bb862eb855d Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Mon, 23 Jan 2023 21:17:35 +0100 Subject: [PATCH] completions/git: Don't leak submodule subcommands Introduced in f5711ad5ed through an unclean edit. --- share/completions/git.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/completions/git.fish b/share/completions/git.fish index 68a7d5df6..ed85970db 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -2009,7 +2009,8 @@ complete -f -c git -n '__fish_git_using_command format-patch' -l no-numbered -s ## git submodule set -l submodulecommands add status init deinit update set-branch set-url summary foreach sync absorbgitdirs -complete -f -c git -n __fish_git_needs_command -a "submodule\t'Initialize, update or inspect submodules' +complete -f -c git -n __fish_git_needs_command -a "submodule\t'Initialize, update or inspect submodules'" +complete -f -c git -n "__fish_git_using_command submodule" -n "not __fish_seen_subcommand_from $submodulecommands" -a " status\t'Show submodule status' init\t'Initialize all submodules' deinit\t'Unregister the given submodules'