Skip to content

Commit 252b238

Browse files
committed
completion: add ref completion to worktree add
Signed-off-by: Devon Jones <[email protected]>
1 parent 33461f1 commit 252b238

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,11 @@ _git_worktree ()
30133013
add,--*)
30143014
__gitcomp_builtin worktree_add
30153015
;;
3016+
add,*)
3017+
if [ $(__git_count_arguments "worktree") -ne 1 ]; then
3018+
__git_complete_refs
3019+
fi
3020+
;;
30163021
list,--*)
30173022
__gitcomp_builtin worktree_list
30183023
;;

0 commit comments

Comments
 (0)