From: "Fangyi Zhou via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Fangyi Zhou" <me@fangyi.io>, "Fangyi Zhou" <me@fangyi.io>
Subject: [PATCH] revert: add angle bracket around argument 'parent-number' in usage
Date: Wed, 23 Nov 2022 22:11:29 +0000 [thread overview]
Message-ID: <pull.1386.git.git.1669241489179.gitgitgadget@gmail.com> (raw)
From: Fangyi Zhou <me@fangyi.io>
8c9e292dc0 (doc txt & -h consistency: add missing options and labels,
2022-10-13) adds detailed usage line for revert and cherry-pick, which
both contain a flag `-m` for parent number.
Angle brackets shall be marked around parent-number, since it represents
an argument.
Signed-off-by: Fangyi Zhou <me@fangyi.io>
---
revert: add angle bracket around argument 'parent-number' in usage
8c9e292dc0 (doc txt & -h consistency: add missing options and labels,
2022-10-13) adds detailed usage line for revert and cherry-pick, which
both contain a flag -m for parent number. Angle brackets shall be marked
around parent-number, since it represents an argument.
Signed-off-by: Fangyi Zhou me@fangyi.io
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1386%2Ffangyi-zhou%2Frevert-fix-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1386/fangyi-zhou/revert-fix-v1
Pull-Request: https://github.com/git/git/pull/1386
Documentation/git-revert.txt | 2 +-
builtin/revert.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-revert.txt b/Documentation/git-revert.txt
index 5016755efb6..d2e10d3dceb 100644
--- a/Documentation/git-revert.txt
+++ b/Documentation/git-revert.txt
@@ -8,7 +8,7 @@ git-revert - Revert some existing commits
SYNOPSIS
--------
[verse]
-'git revert' [--[no-]edit] [-n] [-m parent-number] [-s] [-S[<keyid>]] <commit>...
+'git revert' [--[no-]edit] [-n] [-m <parent-number>] [-s] [-S[<keyid>]] <commit>...
'git revert' (--continue | --skip | --abort | --quit)
DESCRIPTION
diff --git a/builtin/revert.c b/builtin/revert.c
index ee32c714a76..6a9b550a61f 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -21,7 +21,7 @@
*/
static const char * const revert_usage[] = {
- N_("git revert [--[no-]edit] [-n] [-m parent-number] [-s] [-S[<keyid>]] <commit>..."),
+ N_("git revert [--[no-]edit] [-n] [-m <parent-number>] [-s] [-S[<keyid>]] <commit>..."),
N_("git revert (--continue | --skip | --abort | --quit)"),
NULL
};
base-commit: c000d916380bb59db69c78546928eadd076b9c7d
--
gitgitgadget
reply other threads:[~2022-11-23 22:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.1386.git.git.1669241489179.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=me@fangyi.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).