]> git.ipfire.org Git - thirdparty/git.git/commitdiff
builtin/diff.c: fix "git-diff" usage string typo
authorShaoxuan Yuan <shaoxuan.yuan02@gmail.com>
Wed, 2 Feb 2022 07:28:44 +0000 (15:28 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Feb 2022 19:30:53 +0000 (11:30 -0800)
Remove mistaken right square brackets from "git-diff"
usage string. Make the usage string conform to "git-diff"
documentation (Documentation/git-diff.txt).

Signed-off-by: Shaoxuan Yuan <shaoxuan.yuan02@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c

index fa4683377ebbe51ee42d964d29a30011f12f1261..bb7fafca61815460ba085859322314b4c41c8b6b 100644 (file)
@@ -28,9 +28,9 @@ static const char builtin_diff_usage[] =
 "git diff [<options>] [<commit>] [--] [<path>...]\n"
 "   or: git diff [<options>] --cached [--merge-base] [<commit>] [--] [<path>...]\n"
 "   or: git diff [<options>] [--merge-base] <commit> [<commit>...] <commit> [--] [<path>...]\n"
-"   or: git diff [<options>] <commit>...<commit>] [--] [<path>...]\n"
-"   or: git diff [<options>] <blob> <blob>]\n"
-"   or: git diff [<options>] --no-index [--] <path> <path>]\n"
+"   or: git diff [<options>] <commit>...<commit> [--] [<path>...]\n"
+"   or: git diff [<options>] <blob> <blob>\n"
+"   or: git diff [<options>] --no-index [--] <path> <path>\n"
 COMMON_DIFF_OPTIONS_HELP;
 
 static const char *blob_path(struct object_array_entry *entry)