aboutsummaryrefslogtreecommitdiffstats
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-06-13 12:29:46 -0700
committerJunio C Hamano <gitster@pobox.com>2023-06-13 12:29:46 -0700
commitca9c063c1820a78e29306c7d54b4f840ea5db62e (patch)
tree01b545d6f53ee3d8ec069538ea852cd39e8658e6 /builtin
parentMerge branch 'jk/format-patch-message-id-unleak' (diff)
parentdiff-tree: integrate with sparse index (diff)
downloadgit-ca9c063c1820a78e29306c7d54b4f840ea5db62e.tar.gz
git-ca9c063c1820a78e29306c7d54b4f840ea5db62e.zip
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"));