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-04-18 04:05:11 +0300
committerJunio C Hamano <gitster@pobox.com>2023-04-18 04:05:11 +0300
commitd47ee0a5653441ae727e22b8985c517132c42d4c (patch)
treeb592b8cdf13ac59f1f118579f298b5e033fd35fb /builtin/write-tree.c
parent9857273be005833c71e2d16ba48e193113e12276 (diff)
parent1a65b41b38a669f3d6e54edec38e6b8506ef6ee1 (diff)
Merge branch 'sl/sparse-write-tree'
"git write-tree" learns to work better with sparse-index. * sl/sparse-write-tree: write-tree: integrate with sparse index
Diffstat (limited to 'builtin/write-tree.c')
-rw-r--r--builtin/write-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/write-tree.c b/builtin/write-tree.c
index 6085f64d10..32e302a813 100644
--- a/builtin/write-tree.c
+++ b/builtin/write-tree.c
@@ -41,6 +41,9 @@ int cmd_write_tree(int argc, const char **argv, const char *cmd_prefix)
argc = parse_options(argc, argv, cmd_prefix, write_tree_options,
write_tree_usage, 0);
+ prepare_repo_settings(the_repository);
+ the_repository->settings.command_requires_full_index = 0;
+
ret = write_index_as_tree(&oid, &the_index, get_index_file(), flags,
tree_prefix);
switch (ret) {