Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
diff- and log- family: handle "git cmd -h" early
[gitweb.git]
/
builtin
/
diff-files.c
diff --git
a/builtin/diff-files.c
b/builtin/diff-files.c
index 15c61fd8d1ef891b013404ea5e7cbe42befac7bd..6be1df684a8459d7d2226faf9b28fbc55ea443b5 100644
(file)
--- a/
builtin/diff-files.c
+++ b/
builtin/diff-files.c
@@
-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 */