From: Taylor Blau <me@ttaylorr.com>
To: Matthias Beyer <mail@beyermatthias.de>
Cc: git@vger.kernel.org
Subject: Re: signed-off-by not overwritten with GIT_AUTHOR_NAME...?
Date: Wed, 7 Apr 2021 09:54:20 -0400 [thread overview]
Message-ID: <YG25jNZH9ATfwlMu@nand.local> (raw)
In-Reply-To: <20210407134201.kxijiev5sn346bsy@hoshi>
On Wed, Apr 07, 2021 at 03:42:01PM +0200, Matthias Beyer wrote:
> Hi,
>
> I just found that overwriting the GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME env
> variables does alter the author when committing, but does not overwrite the
> --signoff entry. Is this intentional?
It is intentional. The identity used for signoff is the committer's, not
the author's. The documentation for `--signoff` in git-commit(1) says
(emphasis mine):
[...] it typically certifies that *committer* has the rights to submit
this work
And indeed 'sequencer.c:append_signoff()' calls 'fmt_name()' with
WANT_COMMITTER_IDENT, not WANT_AUTHOR_IDENT.
> To reproduce:
>
> cd /tmp
> mkdir foo
> cd foo
> git init
> touch foo
> git add foo
> GIT_AUTHOR_EMAIL=nobody@nomail.de GIT_AUTHOR_NAME="Someone Else" git commit -s -m test
> git show
>
All of the above is to say that if you s/AUTHOR/COMMITTER in your
example above, it will do what you expect.
Thanks,
Taylor
next prev parent reply other threads:[~2021-04-07 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 13:42 signed-off-by not overwritten with GIT_AUTHOR_NAME...? Matthias Beyer
2021-04-07 13:54 ` Taylor Blau [this message]
2021-04-07 14:00 ` Matthias Beyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YG25jNZH9ATfwlMu@nand.local \
--to=me@ttaylorr.com \
--cc=git@vger.kernel.org \
--cc=mail@beyermatthias.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).