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

[PATCH] Add -S, --gpg-sign option to manpage of "git commit"

From
Tom Jones <tom@oxix.org>
Date
Oct 21, 2012, 19:46 UTC
Message-ID
<20121023225101.189E57D4C@ralph.oxix.org>
In-Reply-To
<7vbofvfup7.fsf@alter.siamese.dyndns.org>

git commit -S, --gpg-sign was mentioned in the program's help message, but not in the manpage.

This adds an equivalent entry for the option in the manpage.
Signed-off-by: Tom Jones <tom@oxix.org>
---
On Sun, Oct 21, 2012 at 01:15:16PM -0700, Junio C Hamano wrote:
> Are you sure about this?  The order [...]

Good point. Please find a revised patch, with the newly documented option before the optional double dashes, below.

> Sign off?
Now added, too.
 Documentation/git-commit.txt |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 9594ac8..4b78bd0 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -13,7 +13,7 @@ SYNOPSIS
 	   [-F <file> | -m <msg>] [--reset-author] [--allow-empty]
 	   [--allow-empty-message] [--no-verify] [-e] [--author=<author>]
 	   [--date=<date>] [--cleanup=<mode>] [--status | --no-status]
-	   [-i | -o] [--] [<file>...]
+	   [-i | -o] [-S[keyid]] [--] [<file>...]
 
 DESCRIPTION
 -----------
@@ -276,6 +276,10 @@ configuration variable documented in linkgit:git-config[1].
 	commit message template when using an editor to prepare the
 	default commit message.
 
+-S[<keyid>]::
+--gpg-sign[=<keyid>]::
+	GPG-sign commit.
+
 \--::
 	Do not interpret any more arguments as options.
 
-- 
1.7.2.5
Previous: Junio C HamanoNext: Jeff King
Message 3 of 4 in “Add -S, --gpg-sign option to manpage of "git commit"”
  1. Add -S, --gpg-sign option to manpage of "git commit"Tom Jones, Oct 21, 2012
  2. Junio C HamanoOct 21, 2012
  3. Add -S, --gpg-sign option to manpage of "git commit"Tom Jones, Oct 21, 2012
  4. Jeff KingOct 29, 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.