summaryrefslogtreecommitdiff
path: root/builtin/worktree.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-02-09 11:02:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-02-09 18:24:53 (GMT)
commitfc3d4e0cbe65639509c765726fe01a16575e9ae8 (patch)
treecdaa1eaf174a7696a3d60952b8afa5db0a21d17f /builtin/worktree.c
parent80eb51970d136c1db70604c4c7c8bdea8c457af0 (diff)
downloadgit-fc3d4e0cbe65639509c765726fe01a16575e9ae8.zip
git-fc3d4e0cbe65639509c765726fe01a16575e9ae8.tar.gz
git-fc3d4e0cbe65639509c765726fe01a16575e9ae8.tar.bz2
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 'builtin/worktree.c')
-rw-r--r--builtin/worktree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 4d3422f..76dc6b8 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -367,7 +367,7 @@ static int add(int ac, const char **av, const char *prefix)
struct option options[] = {
OPT__FORCE(&opts.force,
N_("checkout <branch> even if already checked out in other worktree"),
- 0),
+ PARSE_OPT_NOCOMPLETE),
OPT_STRING('b', NULL, &opts.new_branch, N_("branch"),
N_("create a new branch")),
OPT_STRING('B', NULL, &new_branch_force, N_("branch"),