completion: complete 'git worktree repair'
PATCH 1/1 completion: complete 'git worktree repair'
From: Yoichi NAKAYAMA <[email protected]>
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.
---
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(-)
contrib/completion/git-completion.bash +2 -2
@@ -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
Signature · 1 line
gitgitgadget
Quoted 5 lines · Yoichi NAKAYAMA via GitGitGadget
From: Yoichi NAKAYAMA <[email protected]>
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.
We typically write commit messages in imperative mood, as if instructing the code to change. We also briefly describe the status quo, even though it's not as important in this particular case. An example could be:
Our Bash completion does not know to complete the "repair" subcommand for git-worktree(1). Add support for it.
One could also try to add in your bit about worktree paths, but that's something that's quite obviously visible from the diff anyway. So this may or may not be valuable.
Other than that the patch looks good to me.
Thanks!
Patrick
Quoted 12 lines · Patrick Steinhardt
Quoted 5 lines · Yoichi NAKAYAMA via GitGitGadget
From: Yoichi NAKAYAMA <[email protected]>
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.
We typically write commit messages in imperative mood, as if instructing the code to change. We also briefly describe the status quo, even though it's not as important in this particular case. An example could be:
Quoted 6 lines
Our Bash completion does not know to complete the "repair" subcommand for git-worktree(1). Add support for it.
One could also try to add in your bit about worktree paths, but that's something that's quite obviously visible from the diff anyway. So this may or may not be valuable.
Thank you for your comment.
Since this is not limited to bash, it also adds completion support for zsh and tcsh via git-completion.{zsh,tcsh}.
So I'd like to modify the body of the commit message as follows:
The completion scripts do not complete the "repair" subcommand for git-worktree(1). Add support for it.
Thanks
Quoted 5 lines
Other than that the patch looks good to me.
Thanks!
Patrick
Signature · 1 line
Yoichi NAKAYAMA
Quoted 20 lines · Yoichi Nakayama
Quoted 12 lines · Patrick Steinhardt
Quoted 5 lines · Yoichi NAKAYAMA via GitGitGadget
From: Yoichi NAKAYAMA <[email protected]>
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.
We typically write commit messages in imperative mood, as if instructing the code to change. We also briefly describe the status quo, even though it's not as important in this particular case. An example could be:
Quoted 6 lines
Our Bash completion does not know to complete the "repair" subcommand for git-worktree(1). Add support for it.
One could also try to add in your bit about worktree paths, but that's something that's quite obviously visible from the diff anyway. So this may or may not be valuable.
Quoted 7 lines
Thank you for your comment.
Since this is not limited to bash, it also adds completion support for zsh and tcsh via git-completion.{zsh,tcsh}.
So I'd like to modify the body of the commit message as follows:The completion scripts do not complete the "repair" subcommand for git-worktree(1). Add support for it.
Ah, fair. We know to reuse the Bash completion scripts for both of these.
Patrick
PATCH v2 1/1 completion: complete 'git worktree repair'
In reply to Yoichi NAKAYAMA via GitGitGadgetFrom: Yoichi NAKAYAMA <[email protected]>
The completion scripts do not complete the "repair" subcommand for git-worktree(1). Add support for it.
---
completion: complete 'git worktree repair'
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2218%2Fyoichi%2Fcomplete-worktree-repair-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2218/yoichi/complete-worktree-repair-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/2218
Range-diff vs v1:
1: 84cfa0da2d ! 1: 4f3f233065 completion: complete 'git worktree repair'
@@ Metadata
## Commit message ##
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.
+ The completion scripts do not complete the "repair" subcommand for
+ git-worktree(1). Add support for it.
contrib/completion/git-completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
contrib/completion/git-completion.bash +2 -2
@@ -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
Signature · 1 line
gitgitgadget
Quoted 6 lines · Yoichi NAKAYAMA via GitGitGadget
From: Yoichi NAKAYAMA <[email protected]>
The completion scripts do not complete the "repair" subcommand for git-worktree(1). Add support for it.
Signed-off-by Yoichi NAKAYAMA <[email protected]>
Thanks, this looks good to me!
Patrick