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

[PATCH] git-commit: add commit.signoff config option

From
Gerrit Pape <pape@smarden.org>
Date
Jul 6, 2007, 14:45 UTC
Message-ID
<20070706144543.12001.qmail@562ca05ec1cc76.315fe32.mid.smarden.org>
In-Reply-To
<20070706144227.11736.qmail@046ba2bc1a0185.315fe32.mid.smarden.org>
Have the commit.signoff boolean config option automatically add a
Signed-off-by: by git-commit, without giving the -s switch explicitly.
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 git-commit.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-commit.sh b/git-commit.sh
index 7a7d19a..b493820 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -275,6 +275,7 @@ $1"
 	esac
 done
 case "$edit_flag" in t) no_edit= ;; esac
+test "$(git config --bool commit.signoff)" != true || signoff=t
 
 ################################################################
 # Sanity check options
-- 
1.5.2.1
Previous: Gerrit PapeNext: Junio C Hamano
Message 2 of 5 in “git-commit: don't add multiple Signed-off-by: from the same identity”
  1. git-commit: don't add multiple Signed-off-by: from the same identityGerrit Pape, Jul 6, 2007
  2. git-commit: add commit.signoff config optionGerrit Pape, Jul 6, 2007
  3. Junio C HamanoJul 6, 2007
  4. Gerrit PapeJul 8, 2007
  5. Junio C HamanoJul 8, 2007

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.