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

[PATCH] git-gui: Allow users to set commit.signoff from options.

From
Gerrit Pape <pape@smarden.org>
Date
Jul 6, 2007, 14:46 UTC
Message-ID
<20070706144654.12095.qmail@c8e1b1dc78de94.315fe32.mid.smarden.org>

Users may want to automatically sign-off any commit for a specific repository. If they are mostly a git-gui user they should be able to view/set this option from within the git-gui environment, rather than needing to edit a raw text file on their local filesystem.

This was noticed and requested by Josh Triplett through
 http://bugs.debian.org/412776
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 git-gui.sh     |    1 +
 lib/option.tcl |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/git-gui.sh b/git-gui.sh
index 0096f49..5ded736 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1295,6 +1295,7 @@ set default_config(merge.summary) false
 set default_config(merge.verbosity) 2
 set default_config(user.name) {}
 set default_config(user.email) {}
+set default_config(commit.signoff) false
 
 set default_config(gui.pruneduringfetch) false
 set default_config(gui.trustmtime) false
diff --git a/lib/option.tcl b/lib/option.tcl
index ae19a8f..28208ce 100644
--- a/lib/option.tcl
+++ b/lib/option.tcl
@@ -188,6 +188,7 @@ proc do_options {} {
 		{b merge.summary {Summarize Merge Commits}}
 		{i-1..5 merge.verbosity {Merge Verbosity}}
 		{b merge.diffstat {Show Diffstat After Merge}}
+		{b commit.signoff {Automatically Sign-off}}
 
 		{b gui.trustmtime  {Trust File Modification Timestamps}}
 		{b gui.pruneduringfetch {Prune Tracking Branches During Fetch}}
-- 
1.5.2.1
Next: Shawn O. Pearce
Message 1 of 3 in “git-gui: Allow users to set commit.signoff from options.”
  1. git-gui: Allow users to set commit.signoff from options.Gerrit Pape, Jul 6, 2007
  2. Shawn O. PearceJul 8, 2007
  3. Gerrit PapeJul 9, 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.