From 4f3f23306546e8217eab30e9361fe9e33464b79b Mon Sep 17 00:00:00 2001 From: Yoichi NAKAYAMA Date: Sat, 12 Sep 2026 07:53:36 +0900 Subject: [PATCH] completion: complete 'git worktree repair' The completion scripts do not complete the "repair" subcommand for git-worktree(1). Add support for it. Signed-off-by: Yoichi NAKAYAMA --- contrib/completion/git-completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 9f8b9b50ff834c..c3a49e2e22fda1 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -3816,7 +3816,7 @@ __git_complete_worktree_paths () _git_worktree () { - local subcommands="add list lock move prune remove unlock" + local subcommands="add list lock move prune remove repair unlock" local subcommand subcommand_idx subcommand="$(__git_find_on_cmdline --show-idx "$subcommands")" @@ -3866,7 +3866,7 @@ _git_worktree () ;; esac ;; - lock,*|remove,*|unlock,*) + lock,*|remove,*|repair,*|unlock,*) __git_complete_worktree_paths ;; move,*)