From: Shaoxuan Yuan Date: Wed, 2 Feb 2022 07:28:44 +0000 (+0800) Subject: builtin/diff.c: fix "git-diff" usage string typo X-Git-Tag: v2.36.0-rc0~158^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74f3390dde73bccbcea43ffb15c91b76a6fa06bf;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/diff.c b/builtin/diff.c index fa4683377e..bb7fafca61 100644 --- a/builtin/diff.c +++ b/builtin/diff.c @@ -28,9 +28,9 @@ static const char builtin_diff_usage[] = "git diff [] [] [--] [...]\n" " or: git diff [] --cached [--merge-base] [] [--] [...]\n" " or: git diff [] [--merge-base] [...] [--] [...]\n" -" or: git diff [] ...] [--] [...]\n" -" or: git diff [] ]\n" -" or: git diff [] --no-index [--] ]\n" +" or: git diff [] ... [--] [...]\n" +" or: git diff [] \n" +" or: git diff [] --no-index [--] \n" COMMON_DIFF_OPTIONS_HELP; static const char *blob_path(struct object_array_entry *entry)