diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-09 12:02:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-09 19:24:53 +0100 |
commit | fc3d4e0cbe65639509c765726fe01a16575e9ae8 (patch) | |
tree | cdaa1eaf174a7696a3d60952b8afa5db0a21d17f /contrib | |
parent | completion: use __gitcomp_builtin in _git_tag (diff) | |
download | git-fc3d4e0cbe65639509c765726fe01a16575e9ae8.tar.xz git-fc3d4e0cbe65639509c765726fe01a16575e9ae8.zip |
completion: use __gitcomp_builtin in _git_worktree
The new completable options for "worktree add" are:
--checkout
--guess-remote
--lock
--track
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index e76b2f0356..0ddf40063b 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -3021,16 +3021,16 @@ _git_worktree () else case "$subcommand,$cur" in add,--*) - __gitcomp "--detach" + __gitcomp_builtin worktree_add ;; list,--*) - __gitcomp "--porcelain" + __gitcomp_builtin worktree_list ;; lock,--*) - __gitcomp "--reason" + __gitcomp_builtin worktree_lock ;; prune,--*) - __gitcomp "--dry-run --expire --verbose" + __gitcomp_builtin worktree_prune ;; *) ;; |