git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: William Hubbs <williamh@gentoo.org>
To: git@vger.kernel.org
Cc: chutzpah@gentoo.org, williamh@gentoo.org
Subject: enhancement: support for author.email and author.name in "git config"
Date: Thu, 6 Dec 2018 12:17:39 -0600	[thread overview]
Message-ID: <20181206181739.GB30045@whubbs1.gaikai.biz> (raw)

Hi all,

We are in a situation where we would like to use author information that is
different from committer information when we commit to certain
repositories.

Currently, it looks like there are two ways to do this, and I'm not sure
how to make either of them work well.

There are the GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME environment
variables, but  these would have to be set globally. Also, there is the
--author command line switch for the "git commit" command, but this is
easy to forget to use.

Is there something I'm missing?

If not, I would like to propose the addition of author.email and
author.name settings to the git-config system.

Additionally you could add committer.name and committer.email, but the
only reason I bring the committer variations up is consistency since I
see you also have GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment
variables.

Does anyone have any thoughts on this?

I don't think either of us is on the mailing list, so please keep us in
CC's when you reply.

Thanks,

William

             reply	other threads:[~2018-12-06 18:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-06 18:17 William Hubbs [this message]
2018-12-06 18:38 ` enhancement: support for author.email and author.name in "git config" Martin Ågren
2018-12-06 19:17   ` William Hubbs
2018-12-06 22:20     ` Johannes Schindelin
2018-12-07 22:21       ` William Hubbs
2018-12-07 22:44         ` Jonathan Nieder
2018-12-13 19:29           ` William Hubbs
2018-12-13 19:37             ` Jonathan Nieder

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=20181206181739.GB30045@whubbs1.gaikai.biz \
    --to=williamh@gentoo.org \
    --cc=chutzpah@gentoo.org \
    --cc=git@vger.kernel.org \
    /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).