Skip to contentSkip to conversation

commit: document a couple of options

PATCH New Ramkumar Ramachandra 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 commit: document a couple of options

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

---
I noticed this while reading through builtin/commit.c.

 Documentation/git-commit.txt |    8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/git-commit.txt +8 -0
index 2d695f6..f400835 100644
@@ -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:
Signature · 1 line
1.7.10