diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-03-14 22:05:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-14 22:05:25 +0100 |
commit | c5a7ee124d491d5fe0e3948532ca8219b3b471c0 (patch) | |
tree | a30b071b6cddc7f18243bcb8b25fb5a508d22d69 /contrib | |
parent | Merge branch 'rj/complete-reflog' (diff) | |
parent | completion: fix __git_complete_worktree_paths (diff) | |
download | git-c5a7ee124d491d5fe0e3948532ca8219b3b471c0.tar.xz git-c5a7ee124d491d5fe0e3948532ca8219b3b471c0.zip |
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')
-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')" } |