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

[PATCH] Add support for commit.signoff config option

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 28, 2006, 12:02 UTC
Message-ID
<200611281202.43394.andyparkins@gmail.com>

Whether patches require signing off or not is probably a per-project setting rather than a per-commit setting. Therefore as a convenience to the user, the commit.signoff setting will automtically add --signoff to commits.

Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
 git-commit.sh |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/git-commit.sh b/git-commit.sh
index 81c3a0c..c45af10 100755
--- a/git-commit.sh
+++ b/git-commit.sh
@@ -66,9 +66,7 @@ trap '
 	rm -f "$NEXT_INDEX"
 ' 0
 
-################################################################
-# Command line argument parsing and sanity checking
-
+# Init
 all=
 also=
 only=
@@ -85,6 +83,17 @@ signoff=
 force_author=
 only_include_assumed=
 untracked_files=
+
+# Config
+case "$(git-repo-config --get commit.signoff)" in
+1|on|yes|true)
+	signoff=t
+	;;
+esac
+
+################################################################
+# Command line argument parsing and sanity checking
+
 while case "$#" in 0) break;; esac
 do
 	case "$1" in
-- 
1.4.3.GIT-dirty
Next: Junio C Hamano
Message 1 of 4 in “Add support for commit.signoff config option”
  1. Add support for commit.signoff config optionAndy Parkins, Nov 28, 2006
  2. Junio C HamanoNov 28, 2006
  3. Add --bool and --int to the OPTIONS sectionAndy Parkins, Nov 29, 2006
  4. Johannes SchindelinNov 29, 2006

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.