From f6f2cf39ea21d116302e076a4dab9250553736b2 Mon Sep 17 00:00:00 2001 From: Yoichi NAKAYAMA Date: Mon, 14 Sep 2026 19:35:36 +0000 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 Acked-by: Patrick Steinhardt Signed-off-by: Junio C Hamano --- 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 9f8b9b50ff..c3a49e2e22 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,*)