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

[PATCH v2 2/5] doc: the mode param of -u of git commit is optional

From
Jean-Noël Avila via GitGitGadget <gitgitgadget@gmail.com>
Date
Jan 15, 2025, 20:23 UTC
Message-ID
<d58526a9b39571dc2dd2703f62082d20b7a82446.1736972628.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1845.v2.git.1736972628.gitgitgadget@gmail.com>
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
Fix the synopsis to reflect the option description.
Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
---
 Documentation/git-commit.txt | 2 +-
 builtin/commit.c             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index e37c4a4987e..f5d702205d2 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -8,7 +8,7 @@ git-commit - Record changes to the repository
 SYNOPSIS
 --------
 [synopsis]
-git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
+git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]
 	   [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]
 	   [-F <file> | -m <msg>] [--reset-author] [--allow-empty]
 	   [--allow-empty-message] [--no-verify] [-e] [--author=<author>]
diff --git a/builtin/commit.c b/builtin/commit.c
index ef5e622c077..a7315ed67cc 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -44,7 +44,7 @@
 #include "trailer.h"
 
 static const char * const builtin_commit_usage[] = {
-	N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]\n"
+	N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]\n"
 	   "           [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]\n"
 	   "           [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
 	   "           [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"
-- 
gitgitgadget
Previous: Junio C HamanoNext: Jean-Noël Avila via GitGitGadget
Message 10 of 15 in “Doc git commit”
  1. 0/3 Doc git commitJean-Noël Avila via GitGitGadget, Jan 3, 2025
  2. 2/3 doc: git-commit.txt: convert git commit config to new formatJean-Noël Avila via GitGitGadget, Jan 3, 2025
  3. 1/3 doc: git-commit: apply new documentation guidelinesJean-Noël Avila via GitGitGadget, Jan 3, 2025
  4. Patrick SteinhardtJan 6, 2025
  5. Jean-Noël AVILAJan 7, 2025
  6. 3/3 doc: git-commit: migrate secondary files to new formatJean-Noël Avila via GitGitGadget, Jan 3, 2025
  7. 0/5 Doc git commitJean-Noël Avila via GitGitGadget, Jan 15, 2025
  8. 1/5 doc: apply new documentation guidelines to git commitJean-Noël Avila via GitGitGadget, Jan 15, 2025
  9. Junio C HamanoJan 15, 2025
  10. 2/5 doc: the mode param of -u of git commit is optionalJean-Noël Avila via GitGitGadget, Jan 15, 2025
  11. 3/5 doc: make more direct explanations in git commit optionsJean-Noël Avila via GitGitGadget, Jan 15, 2025
  12. 4/5 doc: convert git commit config to new formatJean-Noël Avila via GitGitGadget, Jan 15, 2025
  13. Junio C HamanoJan 15, 2025
  14. 5/5 doc: migrate git-commit manpage secondary files to new formatJean-Noël Avila via GitGitGadget, Jan 15, 2025
  15. Patrick SteinhardtJan 16, 2025

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.