Skip to contentSkip to conversation

builtin/diff.c: fix "git-diff" usage string typo

PATCH In review Shaoxuan Yuan 2 participants 2 messages Feb 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 builtin/diff.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
builtin/diff.c +3 -3
index fa4683377e..bb7fafca61 100644
@@ -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)
Signature · 1 line
2.35.0
#1 lore raw
Quoted 6 lines · Shaoxuan Yuan

Remove mistaken right square brackets from "git-diff" usage string. Make the usage string conform to "git-diff" documentation (Documentation/git-diff.txt).

This looks good to me!

Thanks,
Christian.