]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/worktree.c
completion: use __gitcomp_builtin in _git_worktree
[thirdparty/git.git] / builtin / worktree.c
index 7cef5b120b7786d107282d03052c5e06d3a2c85a..76dc6b8cb56ca85dcbab7a2e9ab539d3ff82749c 100644 (file)
@@ -365,7 +365,9 @@ static int add(int ac, const char **av, const char *prefix)
        const char *branch;
        const char *opt_track = NULL;
        struct option options[] = {
-               OPT__FORCE(&opts.force, N_("checkout <branch> even if already checked out in other worktree")),
+               OPT__FORCE(&opts.force,
+                          N_("checkout <branch> even if already checked out in other worktree"),
+                          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"),