From: "Yoichi NAKAYAMA via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>,
Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>
Subject: [PATCH] completion: complete 'git worktree repair'
Date: Sat, 12 Sep 2026 00:12:35 +0000 [thread overview]
Message-ID: <pull.2218.git.1789171955370.gitgitgadget@gmail.com> (raw)
From: Yoichi NAKAYAMA <yoichi.nakayama@gmail.com>
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 <yoichi.nakayama@gmail.com>
---
completion: complete 'git worktree repair'
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2218%2Fyoichi%2Fcomplete-worktree-repair-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2218/yoichi/complete-worktree-repair-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/2218
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,*)
base-commit: 47ce80527c56f462cb97db4ca8125342204d3783
--
gitgitgadget
next reply other threads:[~2026-09-12 0:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 0:12 Yoichi NAKAYAMA via GitGitGadget [this message]
2026-09-14 6:29 ` [PATCH] completion: complete 'git worktree repair' Patrick Steinhardt
2026-09-14 12:08 ` Yoichi Nakayama
2026-09-23 13:06 ` Patrick Steinhardt
2026-09-14 19:35 ` [PATCH v2] " Yoichi NAKAYAMA via GitGitGadget
2026-09-23 12:57 ` Patrick Steinhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.2218.git.1789171955370.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=yoichi.nakayama@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.