summaryrefslogtreecommitdiff
path: root/builtin-diff.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2009-08-06 12:47:21 +0200
committerJunio C Hamano <gitster@pobox.com>2009-08-07 14:40:29 -0700
commit1c370ea4e519f8facaf321b633f79eb68a14a0db (patch)
treef7056dbecb874b4d4709614375484876ee66ab7e /builtin-diff.c
parent4d590f0607184021c7b52430aa41483e6fd0d044 (diff)
downloadgit-1c370ea4e519f8facaf321b633f79eb68a14a0db.tar.gz
Show usage string for 'git log -h', 'git show -h' and 'git diff -h'
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-diff.c')
-rw-r--r--builtin-diff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin-diff.c b/builtin-diff.c
index 2e51f408f9..ffcdd055ca 100644
--- a/builtin-diff.c
+++ b/builtin-diff.c
@@ -218,6 +218,8 @@ static int builtin_diff_files(struct rev_info *revs, int argc, const char **argv
revs->max_count = 3;
else if (!strcmp(argv[1], "-q"))
options |= DIFF_SILENT_ON_REMOVED;
+ else if (!strcmp(argv[1], "-h"))
+ usage(builtin_diff_usage);
else
return error("invalid option: %s", argv[1]);
argv++; argc--;