aboutsummaryrefslogtreecommitdiffstats
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-08-29 11:08:17 -0700
committerJunio C Hamano <gitster@pobox.com>2024-08-29 11:08:17 -0700
commit11fd53a6c21e68cdb7f66b2208020207adf18cc8 (patch)
tree15c1017181361e0ff480dde21987f155185e9c5f /builtin
parent839b808325724e4e47c3ca18b2b131c205123632 (diff)
parentb44c926c9fb28b3847efc0057c4563ad76372e30 (diff)
downloadgit-11fd53a6c21e68cdb7f66b2208020207adf18cc8.tar.gz
Merge branch 'ds/sparse-diff-index'
The underlying machinery for "git diff-index" has long been made to expand the sparse index as needed, but the command fully expanded the sparse index upfront, which now has been taught not to do. * ds/sparse-diff-index: diff-index: integrate with the sparse index
Diffstat (limited to 'builtin')
-rw-r--r--builtin/diff-index.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/diff-index.c b/builtin/diff-index.c
index 3e05260ac0..685b60284f 100644
--- a/builtin/diff-index.c
+++ b/builtin/diff-index.c
@@ -25,6 +25,10 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix)
usage(diff_cache_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, &rev, prefix);
rev.abbrev = 0;
prefix = precompose_argv_prefix(argc, argv, prefix);