From 74f3390dde73bccbcea43ffb15c91b76a6fa06bf Mon Sep 17 00:00:00 2001 From: Shaoxuan Yuan Date: Wed, 2 Feb 2022 15:28:44 +0800 Subject: 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 --- builtin/diff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'builtin/diff.c') 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) -- cgit v1.2.3