builtin/diff.c: fix "git-diff" usage string typo
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>
Shaoxuan Yuan committed
Feb 2, 2022 at 15:28 UTC
74f3390dde73bccbcea43ffb15c91b76a6fa06bf
1 file changed
+3
-3
builtin/diff.c
+3
-3
@@ -28,9 +28,9 @@ static const char builtin_diff_usage[] =
28
"git diff [<options>] [<commit>] [--] [<path>...]\n"
29
" or: git diff [<options>] --cached [--merge-base] [<commit>] [--] [<path>...]\n"
30
" or: git diff [<options>] [--merge-base] <commit> [<commit>...] <commit> [--] [<path>...]\n"
31
-" or: git diff [<options>] <commit>...<commit>] [--] [<path>...]\n"
32
-" or: git diff [<options>] <blob> <blob>]\n"
33
-" or: git diff [<options>] --no-index [--] <path> <path>]\n"
31
+" or: git diff [<options>] <commit>...<commit> [--] [<path>...]\n"
32
+" or: git diff [<options>] <blob> <blob>\n"
33
+" or: git diff [<options>] --no-index [--] <path> <path>\n"
34
COMMON_DIFF_OPTIONS_HELP;
35
36
static const char *blob_path(struct object_array_entry *entry)