# [PATCH] git-gui: respect commit.gpgsign again

5 messages from 2016-09-09 to 2016-09-12. Participants: Johannes Schindelin, Junio C Hamano.
Thread: https://gitlist.dev/t/44047

## Johannes Schindelin, 2016-09-09 12:28

Subject: [PATCH] git-gui: respect commit.gpgsign again
Message-ID: <550e7de5e08e53b5893e1ce021bffee468adfc9d.1473424091.git.johannes.schindelin@gmx.de>
URL: https://gitlist.dev/e/550e7de5e08e53b5893e1ce021bffee468adfc9d.1473424091.git.johannes.schindelin%40gmx.de

```
As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign`
config setting. This broke committing in Git GUI.

This fixes https://github.com/git-for-windows/git/issues/850

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
Published-As: https://github.com/dscho/git/releases/tag/git-gui-gpgsign-v1
Fetch-It-Via: git fetch https://github.com/dscho/git git-gui-gpgsign-v1

 git-gui/lib/commit.tcl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/git-gui/lib/commit.tcl b/git-gui/lib/commit.tcl
index 864b687..01d2cc2 100644
--- a/git-gui/lib/commit.tcl
+++ b/git-gui/lib/commit.tcl
@@ -369,6 +369,9 @@ A rescan will be automatically started now.
 	# -- Create the commit.
 	#
 	set cmd [list commit-tree $tree_id]
+	if {[is_config_true commit.gpgsign]} {
+		lappend cmd -S
+	}
 	foreach p [concat $PARENT $MERGE_HEAD] {
 		lappend cmd -p $p
 	}
-- 
2.10.0.windows.1.10.g803177d

base-commit: 6ebdac1bab966b720d776aa43ca188fe378b1f4b

```

## Junio C Hamano, 2016-09-09 18:29

Subject: Re: [PATCH] git-gui: respect commit.gpgsign again
Message-ID: <xmqqr38tapv0.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqr38tapv0.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <550e7de5e08e53b5893e1ce021bffee468adfc9d.1473424091.git.johannes.schindelin@gmx.de>

```
Johannes Schindelin <johannes.schindelin@gmx.de> writes:

> As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign`
> config setting. This broke committing in Git GUI.

Thanks.  Will shift it up to apply to my copy of git-gui project and
then pull in the result.

>  git-gui/lib/commit.tcl | 3 +++
>  1 file changed, 3 insertions(+)

```

## Johannes Schindelin, 2016-09-10 07:05

Subject: Re: [PATCH] git-gui: respect commit.gpgsign again
Message-ID: <alpine.DEB.2.20.1609100903010.129229@virtualbox>
URL: https://gitlist.dev/e/alpine.DEB.2.20.1609100903010.129229%40virtualbox
In-Reply-To: <xmqqr38tapv0.fsf@gitster.mtv.corp.google.com>

```
Hi Junio,

On Fri, 9 Sep 2016, Junio C Hamano wrote:

> Johannes Schindelin <johannes.schindelin@gmx.de> writes:
> 
> > As of v2.9.0, `git commit-tree` no longer heeds the `commit.gpgsign`
> > config setting. This broke committing in Git GUI.
> 
> Thanks.  Will shift it up to apply to my copy of git-gui project and
> then pull in the result.

Thanks. There are a couple more git-gui patches waiting for quite a long
time. So you prefer them still as patches to git-gui.git?

Also, I just noticed poor wording. Would you mind fixing it up by

	s/committing/& with GPG signature/

?

Thanks,
Dscho

```

## Junio C Hamano, 2016-09-11 21:52

Subject: Re: [PATCH] git-gui: respect commit.gpgsign again
Message-ID: <xmqqr38q6r5b.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqr38q6r5b.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <alpine.DEB.2.20.1609100903010.129229@virtualbox>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> Thanks. There are a couple more git-gui patches waiting for quite a long
> time. So you prefer them still as patches to git-gui.git?

I prefer not to have to worry about them myself ;-)  That means that
even if Pat steps down, the next maintainer for git-gui project
would not be me, so I wouldn't be making a unilateral decision to
re-root git-gui.git project one-level down.

> Also, I just noticed poor wording. Would you mind fixing it up by
>
> 	s/committing/& with GPG signature/

Ouch, I didn't notice.  It's not in 'next' yet, so let me see if I
can futz with the history.

Thanks.

```

## Johannes Schindelin, 2016-09-12 08:14

Subject: Re: [PATCH] git-gui: respect commit.gpgsign again
Message-ID: <alpine.DEB.2.20.1609121013510.129229@virtualbox>
URL: https://gitlist.dev/e/alpine.DEB.2.20.1609121013510.129229%40virtualbox
In-Reply-To: <xmqqr38q6r5b.fsf@gitster.mtv.corp.google.com>

```
Hi Junio,

On Sun, 11 Sep 2016, Junio C Hamano wrote:

> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > Thanks. There are a couple more git-gui patches waiting for quite a long
> > time. So you prefer them still as patches to git-gui.git?
> 
> I prefer not to have to worry about them myself ;-)  That means that
> even if Pat steps down, the next maintainer for git-gui project
> would not be me, so I wouldn't be making a unilateral decision to
> re-root git-gui.git project one-level down.

Makes sense.

> > Also, I just noticed poor wording. Would you mind fixing it up by
> >
> > 	s/committing/& with GPG signature/
> 
> Ouch, I didn't notice.  It's not in 'next' yet, so let me see if I
> can futz with the history.

Thank you!
Dscho

```
