git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git commit-tree does not honor commit.gpgSign config
@ 2020-09-28 16:21 Evan Grim
  2020-09-28 18:46 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Evan Grim @ 2020-09-28 16:21 UTC (permalink / raw)
  To: git

Is it a bug that `git-commit-tree` doesn't honor the `commit.gpgSign`
configuration option?

I'm considering working up a patch to fix this, but want a quick check
from more knowledgeable sources first on what the desired behavior is.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git commit-tree does not honor commit.gpgSign config
  2020-09-28 16:21 git commit-tree does not honor commit.gpgSign config Evan Grim
@ 2020-09-28 18:46 ` Junio C Hamano
  2020-09-28 19:42   ` Evan Grim
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2020-09-28 18:46 UTC (permalink / raw)
  To: Evan Grim; +Cc: git

Evan Grim <evangrim@gmail.com> writes:

> Is it a bug that `git-commit-tree` doesn't honor the `commit.gpgSign`
> configuration option?

It would be a bug if it did, as a low level plumbing tool to build
scripts around, it would not want its behaviour to be affected by
end-user configuration (rather, scripts that are written using these
plumbing command do want to handle end-user customization their own
ways).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git commit-tree does not honor commit.gpgSign config
  2020-09-28 18:46 ` Junio C Hamano
@ 2020-09-28 19:42   ` Evan Grim
  2020-09-28 22:37     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Evan Grim @ 2020-09-28 19:42 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Thank you for that context.  I came across this when I used
`git-subtree` and was surprised the commits it created weren't signed.
Would it be appropriate to look into patching `git-subtree` to honor
the configuration option?

On Mon, Sep 28, 2020 at 12:46 PM Junio C Hamano <gitster@pobox.com> wrote:
>
> Evan Grim <evangrim@gmail.com> writes:
>
> > Is it a bug that `git-commit-tree` doesn't honor the `commit.gpgSign`
> > configuration option?
>
> It would be a bug if it did, as a low level plumbing tool to build
> scripts around, it would not want its behaviour to be affected by
> end-user configuration (rather, scripts that are written using these
> plumbing command do want to handle end-user customization their own
> ways).

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git commit-tree does not honor commit.gpgSign config
  2020-09-28 19:42   ` Evan Grim
@ 2020-09-28 22:37     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2020-09-28 22:37 UTC (permalink / raw)
  To: Evan Grim; +Cc: git

Evan Grim <evangrim@gmail.com> writes:

> On Mon, Sep 28, 2020 at 12:46 PM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> Evan Grim <evangrim@gmail.com> writes:
>>
>> > Is it a bug that `git-commit-tree` doesn't honor the `commit.gpgSign`
>> > configuration option?
>>
>> It would be a bug if it did, as a low level plumbing tool to build
>> scripts around, it would not want its behaviour to be affected by
>> end-user configuration (rather, scripts that are written using these
>> plumbing command do want to handle end-user customization their own
>> ways).
>
> Thank you for that context.  I came across this when I used
> `git-subtree` and was surprised the commits it created weren't signed.
> Would it be appropriate to look into patching `git-subtree` to honor
> the configuration option?

Yes, the script that invokes "commit-tree" is at the right layer to
notice commit.gpgsign and possibly $name_of_the_script.gpgsign
configuration variable(s) and add the -S option, I would think.

I do not know if there are people who are still using, or who is
maintaining, the "subtree" script, though.

Thanks.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-28 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 16:21 git commit-tree does not honor commit.gpgSign config Evan Grim
2020-09-28 18:46 ` Junio C Hamano
2020-09-28 19:42   ` Evan Grim
2020-09-28 22:37     ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).