diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-03-14 14:05:25 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-14 14:05:25 -0700 |
| commit | c5a7ee124d491d5fe0e3948532ca8219b3b471c0 (patch) | |
| tree | a30b071b6cddc7f18243bcb8b25fb5a508d22d69 /contrib/completion/git-completion.bash | |
| parent | 43100746e69aacb3f8110a9855aacd66483f7e24 (diff) | |
| parent | 3574816d98a332187fc331826cdf170b0adf3a47 (diff) | |
| download | git-c5a7ee124d491d5fe0e3948532ca8219b3b471c0.tar.xz | |
Merge branch 'rj/complete-worktree-paths-fix'
The logic to complete the command line arguments to "git worktree"
subcommand (in contrib/) has been updated to correctly honor things
like "git -C dir" etc.
* rj/complete-worktree-paths-fix:
completion: fix __git_complete_worktree_paths
Diffstat (limited to 'contrib/completion/git-completion.bash')
| -rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 61e99641c0..75193ded4b 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -3629,7 +3629,7 @@ __git_complete_worktree_paths () # Generate completion reply from worktree list skipping the first # entry: it's the path of the main worktree, which can't be moved, # removed, locked, etc. - __gitcomp_nl "$(git worktree list --porcelain | + __gitcomp_nl "$(__git worktree list --porcelain | sed -n -e '2,$ s/^worktree //p')" } |
