]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/diff-files.c
Merge branch 'ea/blame-use-oideq'
[thirdparty/git.git] / builtin / diff-files.c
index 86ae474fbfb410f026d42ce9f36e9805a98cfc82..1e352dd8f77c281e41d702af81378cc9e213aaad 100644 (file)
@@ -28,6 +28,13 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
        git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
        repo_init_revisions(the_repository, &rev, prefix);
        rev.abbrev = 0;
+
+       /*
+        * Consider "intent-to-add" files as new by default, unless
+        * explicitly specified in the command line or anywhere else.
+        */
+       rev.diffopt.ita_invisible_in_index = 1;
+
        precompose_argv(argc, argv);
 
        argc = setup_revisions(argc, argv, &rev, NULL);