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-tree.c
diff --git
a/builtin/diff-tree.c
b/builtin/diff-tree.c
index 326f88b6576d6c02e9a0bcecb5a0b402bb257372..773cc254b5909713b2838db4ba52e7b6f9e88e60 100644
(file)
--- a/
builtin/diff-tree.c
+++ b/
builtin/diff-tree.c
@@
-105,6
+105,9
@@
int cmd_diff_tree(int argc, const char **argv, const char *prefix)
struct setup_revision_opt s_r_opt;
int read_stdin = 0;
+ if (argc == 2 && !strcmp(argv[1], "-h"))
+ usage(diff_tree_usage);
+
init_revisions(opt, prefix);
gitmodules_config();
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */