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

[PATCH] commit: document a couple of options

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jun 8, 2012, 10:18 UTC
Message-ID
<1339150710-12281-1-git-send-email-artagnon@gmail.com>

Document git commit '--branch' and '--no-post-rewrite'. Mention that '-z' can also be spelt as '--null'.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
 I noticed this while reading through builtin/commit.c.
 Documentation/git-commit.txt |    8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 2d695f6..f400835 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -101,12 +101,16 @@ OPTIONS
 	When doing a dry-run, give the output in the short-format. See
 	linkgit:git-status[1] for details. Implies `--dry-run`.
 
+--branch::
+	Show the branch and tracking info even in short-format.
+
 --porcelain::
 	When doing a dry-run, give the output in a porcelain-ready
 	format. See linkgit:git-status[1] for details. Implies
 	`--dry-run`.
 
 -z::
+--null::
 	When showing `short` or `porcelain` status output, terminate
 	entries in the status output with NUL, instead of LF. If no
 	format is given, implies the `--porcelain` output format.
@@ -189,6 +193,10 @@ OPTIONS
 	current tip -- if it was a merge, it will have the parents of
 	the current tip as parents -- so the current top commit is
 	discarded.
+
+--no-post-rewrite::
+	Bypass the post-rewrite hook.
+
 +
 --
 It is a rough equivalent for:
-- 
1.7.10
Message 1 of 1 in “commit: document a couple of options”
  1. commit: document a couple of optionsRamkumar Ramachandra, Jun 8, 2012

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.