* [PATCH] builtin/diff.c: fix "git-diff" usage string typo
@ 2022-02-02 7:28 Shaoxuan Yuan
2022-02-02 17:44 ` Christian Couder
0 siblings, 1 reply; 2+ messages in thread
From: Shaoxuan Yuan @ 2022-02-02 7:28 UTC (permalink / raw)
To: git; +Cc: gitster, christian.couder, me, adlternative, 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).
Signed-off-by: Shaoxuan Yuan <shaoxuan.yuan02@gmail.com>
---
builtin/diff.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 [<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)
--
2.35.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] builtin/diff.c: fix "git-diff" usage string typo
2022-02-02 7:28 [PATCH] builtin/diff.c: fix "git-diff" usage string typo Shaoxuan Yuan
@ 2022-02-02 17:44 ` Christian Couder
0 siblings, 0 replies; 2+ messages in thread
From: Christian Couder @ 2022-02-02 17:44 UTC (permalink / raw)
To: Shaoxuan Yuan; +Cc: git, Junio C Hamano, Taylor Blau, ZheNing Hu
On Wed, Feb 2, 2022 at 8:29 AM Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> wrote:
>
> 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>
This looks good to me!
Thanks,
Christian.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-02 17:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-02 7:28 [PATCH] builtin/diff.c: fix "git-diff" usage string typo Shaoxuan Yuan
2022-02-02 17:44 ` Christian Couder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).