git-submodule.sh: accept verbose flag in cmd_update to be non-quiet
[gitweb.git] / builtin / diff-files.c
index 15c61fd8d1ef891b013404ea5e7cbe42befac7bd..c97069a714e42a1737b5dfa223fe39c26ad9aa67 100644 (file)
@@ -20,9 +20,12 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
        int result;
        unsigned options = 0;
 
+       if (argc == 2 && !strcmp(argv[1], "-h"))
+               usage(diff_files_usage);
+
+       git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
        init_revisions(&rev, prefix);
        gitmodules_config();
-       git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
        rev.abbrev = 0;
        precompose_argv(argc, argv);