git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* `git commit` with the `--author` option
@ 2022-01-14 20:24 Glen Peterson
  2022-01-14 20:38 ` brian m. carlson
  0 siblings, 1 reply; 2+ messages in thread
From: Glen Peterson @ 2022-01-14 20:24 UTC (permalink / raw)
  To: git

Thank you for git!  I use it hourly.  It is orders of magnitude better
than vcs, cvs, subversion, clearquest, sourcesafe, and a number of
others I have used, but can't remember right now.

I was excited to see the `--author` option on the `git commit`
command, thinking that I could use it to set arbitrary authors for git
commits.  Reading the docs, I expected to use it to, "Specify an
explicit author using the standard A U Thor _author@example.com_
format."

It seems from stackoverflow and this list that git won't do that
unless you have an author specified in your config somewhere (`git
config user.email` and `git config user.name`)?  Links to sources
available on request (your system rejected my first email).

Does the email you set in the `--author` option have to match the one
in your config, or can you set it to anything once you have a random
user.email in your config?  Is this option just for choosing between
pre-configured emails?

I think this option would be much more useful if it worked without
also setting your git config.

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

end of thread, other threads:[~2022-01-14 20:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 20:24 `git commit` with the `--author` option Glen Peterson
2022-01-14 20:38 ` brian m. carlson

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).