stash: convert branch to builtin
[gitweb.git] / builtin / diff-index.c
index 09959f254fc3ea129ae834df404d21c6be7bee3d..fcccd1f10dc95cd47a994b5139226af438049f87 100644 (file)
@@ -22,8 +22,7 @@ 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 */
-       init_revisions(&rev, prefix);
-       gitmodules_config();
+       repo_init_revisions(the_repository, &rev, prefix);
        rev.abbrev = 0;
        precompose_argv(argc, argv);