am: release strbuf on error return in hg_patch_to_mail()
[gitweb.git] / builtin / diff-files.c
index 6be1df684a8459d7d2226faf9b28fbc55ea443b5..e88493ffe5d5d66461edb71832b58e8b3b4b2bc8 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright (C) Linus Torvalds, 2005
  */
 #include "cache.h"
+#include "config.h"
 #include "diff.h"
 #include "commit.h"
 #include "revision.h"
@@ -23,9 +24,8 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
        if (argc == 2 && !strcmp(argv[1], "-h"))
                usage(diff_files_usage);
 
-       init_revisions(&rev, prefix);
-       gitmodules_config();
        git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
+       init_revisions(&rev, prefix);
        rev.abbrev = 0;
        precompose_argv(argc, argv);