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-13 22:29:46 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-13 22:29:46 +0300
commitca9c063c1820a78e29306c7d54b4f840ea5db62e (patch)
tree01b545d6f53ee3d8ec069538ea852cd39e8658e6 /builtin
parente490bea8a68fceb227277fef38daa1b7522b97a5 (diff)
parent48c5fbfb8976c733b7ea550675594a77777db2fa (diff)
Merge branch 'sl/diff-tree-sparse'
"git diff-tree" has been taught to take advantage of the sparse-index feature. * sl/diff-tree-sparse: diff-tree: integrate with sparse index
Diffstat (limited to 'builtin')
-rw-r--r--builtin/diff-tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/diff-tree.c b/builtin/diff-tree.c
index 0b02c62b85..c0540317fb 100644
--- a/builtin/diff-tree.c
+++ b/builtin/diff-tree.c
@@ -122,6 +122,10 @@ int cmd_diff_tree(int argc, const char **argv, const char *prefix)
usage(diff_tree_usage);
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
+
+ prepare_repo_settings(the_repository);
+ the_repository->settings.command_requires_full_index = 0;
+
repo_init_revisions(the_repository, opt, prefix);
if (repo_read_index(the_repository) < 0)
die(_("index file corrupt"));