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

[PATCH 4/4] doc: fix the bnf like style of some commands

From
Jean-Noël Avila <jn.avila@free.fr>
Date
Oct 8, 2020, 20:23 UTC
Message-ID
<20201008202357.15490-4-jn.avila@free.fr>
In-Reply-To
<20201008202357.15490-1-jn.avila@free.fr>
In command line options, variables are entered between < and >
Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
---
 Documentation/git-init.txt  | 2 +-
 builtin/submodule--helper.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index f35f70f13d..59ecda6c17 100644
--- a/Documentation/git-init.txt
+++ b/Documentation/git-init.txt
@@ -70,7 +70,7 @@ repository.
 +
 If this is reinitialization, the repository will be moved to the specified path.
 
--b <branch-name::
+-b <branch-name>::
 --initial-branch=<branch-name>::
 
 Use the specified name for the initial branch in the newly created repository.
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index de5ad73bb8..c30896c897 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -1308,7 +1308,7 @@ static int module_summary(int argc, const char **argv, const char *prefix)
 	};
 
 	const char *const git_submodule_helper_usage[] = {
-		N_("git submodule--helper summary [<options>] [commit] [--] [<path>]"),
+		N_("git submodule--helper summary [<options>] [<commit>] [--] [<path>]"),
 		NULL
 	};
 
-- 
2.28.0.rc0
Previous: Jean-Noël AvilaNext: Jean-Noël Avila
Message 2 of 5 in “git-bisect-lk2009: make continuation of list indented”
  1. 1/4 git-bisect-lk2009: make continuation of list indentedJean-Noël Avila, Oct 8, 2020
  2. 4/4 doc: fix the bnf like style of some commandsJean-Noël Avila, Oct 8, 2020
  3. 2/4 doc: use linkgit macro where needed.Jean-Noël Avila, Oct 8, 2020
  4. 3/4 doc: git-remote fix upsJean-Noël Avila, Oct 8, 2020
  5. Junio C HamanoOct 8, 2020

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.