summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-03-14 22:05:25 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-14 22:05:25 +0100
commitc5a7ee124d491d5fe0e3948532ca8219b3b471c0 (patch)
treea30b071b6cddc7f18243bcb8b25fb5a508d22d69 /contrib
parentMerge branch 'rj/complete-reflog' (diff)
parentcompletion: fix __git_complete_worktree_paths (diff)
downloadgit-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.bash2
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')"
}