#include "argv-array.h"
#include "run-command.h"
#include "sigchain.h"
+#include "refs.h"
static const char * const worktree_usage[] = {
N_("git worktree add [<options>] <path> <branch>"),
argv_array_push(&cmd, "checkout");
if (force)
- argv_array_push(&cmd, "--force");
+ argv_array_push(&cmd, "--ignore-other-worktrees");
if (new_branch)
argv_array_pushl(&cmd, "-b", new_branch, NULL);
if (new_branch_force)