]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/diff-files.c
diff- and log- family: handle "git cmd -h" early
[thirdparty/git.git] / builtin / diff-files.c
index 15c61fd8d1ef891b013404ea5e7cbe42befac7bd..6be1df684a8459d7d2226faf9b28fbc55ea443b5 100644 (file)
@@ -20,6 +20,9 @@ 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);
+
        init_revisions(&rev, prefix);
        gitmodules_config();
        git_config(git_diff_basic_config, NULL); /* no "diff" UI options */