]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/diff.c
Merge branch 'ep/maint-equals-null-cocci' for maint-2.35
[thirdparty/git.git] / builtin / diff.c
index 6724f74660d43878bb3c6c29e52da56a3b4ce533..8dd4909b9785c6b87d809c73fd30e436f1efdfbe 100644 (file)
@@ -437,6 +437,11 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
 
        prefix = setup_git_directory_gently(&nongit);
 
+       if (!nongit) {
+               prepare_repo_settings(the_repository);
+               the_repository->settings.command_requires_full_index = 0;
+       }
+
        if (!no_index) {
                /*
                 * Treat git diff with at least one path outside of the