git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] revert: add angle bracket around argument 'parent-number' in usage

From
Fangyi Zhou via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 23, 2022, 22:11 UTC
Message-ID
<pull.1386.git.git.1669241489179.gitgitgadget@gmail.com>
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
Message 1 of 1 in “revert: add angle bracket around argument 'parent-number' in usage”
  1. revert: add angle bracket around argument 'parent-number' in usageFangyi Zhou via GitGitGadget, Nov 23, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.