diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-06-23 21:21:16 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-23 21:21:16 +0300 |
commit | a813d9e23962ba5c922b486757d69ae582adea4d (patch) | |
tree | 5fad6f3479ca50338dde9d0e1a6d510ee1411de1 /builtin/worktree.c | |
parent | dcedba13b38978f56e5b703bfaff379a86d6e52f (diff) | |
parent | 8fac776f441c69af60825452a3b5d4adecd47ad9 (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.c | 4 |
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); } |