Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pull: optionally rebase submodules (remote submodule changes only)
[gitweb.git]
/
builtin
/
diff-index.c
diff --git
a/builtin/diff-index.c
b/builtin/diff-index.c
index f084826a293f96870d0cf6be05e3e346672fc5dc..d59bf6cf5f8da394251532765f27a044c14a572d 100644
(file)
--- a/
builtin/diff-index.c
+++ b/
builtin/diff-index.c
@@
-17,6
+17,9
@@
int cmd_diff_index(int argc, const char **argv, const char *prefix)
int i;
int result;
+ if (argc == 2 && !strcmp(argv[1], "-h"))
+ usage(diff_cache_usage);
+
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
init_revisions(&rev, prefix);
gitmodules_config();