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

[PATCH] Document --no-signoff option of git commit

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Apr 24, 2009, 08:31 UTC
Message-ID
<1240561860-4762-1-git-send-email-git@drmicha.warpmail.net>

--no-signoff can be used to override --signoff and -s. This is useful for overriding options set in git aliases.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
---
Patch is against 09cff06 (Documentation: Clarify '--signoff' for git-commit, 2008-10-19).

It is "obvious" that one can override boolean options by prepending "no-" for all commands which use the appropriate option parser. But I don't think it's obvious to most users.

On the other hand, having an alias like ci="commit -s" is useful and appropriate depending on a project's policy and a user's discipline. But still one may want to do a few commits without s-o-b. E.g., merge commits (without conflicts) don't get s-o-b lines, but amending them would add a s-o-b line with teh above alias.

Maybe there is a better place to discuss general option parsing? But it's not the same for all commands yet, I think.

Michael
 Documentation/git-commit.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index b5d81be..ef20ba6 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -96,7 +96,7 @@ OPTIONS
 -s::
 --signoff::
 	Add Signed-off-by line by the committer at the end of the commit
-	log message.
+	log message. This can be overriden with `--no-signoff`.
 
 -n::
 --no-verify::
-- 
1.6.3.rc1.51.gea0b7
Message 1 of 1 in “Document --no-signoff option of git commit”
  1. Document --no-signoff option of git commitMichael J Gruber, Apr 24, 2009

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.