diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-06-23 11:21:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-23 11:21:16 -0700 |
| commit | a813d9e23962ba5c922b486757d69ae582adea4d (patch) | |
| tree | 5fad6f3479ca50338dde9d0e1a6d510ee1411de1 /builtin | |
| parent | Merge branch 'rs/run-command-exec-error-on-noent' (diff) | |
| parent | worktree: integrate with sparse-index (diff) | |
| download | git-a813d9e23962ba5c922b486757d69ae582adea4d.tar.gz git-a813d9e23962ba5c922b486757d69ae582adea4d.zip | |
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')
| -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); } |
