diff options
Diffstat (limited to 'builtin/diff-index.c')
-rw-r--r-- | builtin/diff-index.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builtin/diff-index.c b/builtin/diff-index.c index 1af373d002..d59bf6cf5f 100644 --- a/builtin/diff-index.c +++ b/builtin/diff-index.c @@ -17,9 +17,12 @@ 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(); - git_config(git_diff_basic_config, NULL); /* no "diff" UI options */ rev.abbrev = 0; precompose_argv(argc, argv); |