Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-06-23 21:21:16 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-23 21:21:16 +0300
commita813d9e23962ba5c922b486757d69ae582adea4d (patch)
tree5fad6f3479ca50338dde9d0e1a6d510ee1411de1 /builtin/worktree.c
parentdcedba13b38978f56e5b703bfaff379a86d6e52f (diff)
parent8fac776f441c69af60825452a3b5d4adecd47ad9 (diff)
Merge branch 'sl/worktree-sparse'
"git worktree" learned to work better with sparse index feature. * sl/worktree-sparse: worktree: integrate with sparse-index
Diffstat (limited to 'builtin/worktree.c')
-rw-r--r--builtin/worktree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 2931cd0230..5a9cf076ad 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -1407,5 +1407,9 @@ int cmd_worktree(int ac, const char **av, const char *prefix)
prefix = "";
ac = parse_options(ac, av, prefix, options, git_worktree_usage, 0);
+
+ prepare_repo_settings(the_repository);
+ the_repository->settings.command_requires_full_index = 0;
+
return fn(ac, av, prefix);
}