From 54fcb248554868cbbe786e0737ad55dd12a2e083 Mon Sep 17 00:00:00 2001 From: Yoichi NAKAYAMA Date: Sat, 5 Sep 2026 09:23:24 +0900 Subject: [PATCH] completion: complete 'git worktree repair' Added completion support for the 'repair' subcommand of worktree. It optionally receives a list of paths to linked worktrees or paths to worktrees with broken links. 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,*)