git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 1/2] config: allow giving separate author and committer idents

From
William Hubbs <williamh@gentoo.org>
Date
Jan 28, 2019, 18:58 UTC
Message-ID
<20190128185817.GA28155@whubbs1.gaikai.biz>
In-Reply-To
<877ees4a65.fsf@evledraar.gmail.com>
On Fri, Jan 25, 2019 at 11:58:10PM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 49 quoted lines
> 
> On Fri, Jan 25 2019, William Hubbs wrote:
> 
> > diff --git a/Documentation/config/user.txt b/Documentation/config/user.txt
> > index b5b2ba1199..18e1ec3c1b 100644
> > --- a/Documentation/config/user.txt
> > +++ b/Documentation/config/user.txt
> > @@ -1,12 +1,39 @@
> > +author.email::
> > +	The email address used for the author of newly
> > +	created commits.  Defaults to the value of the
> > +	`GIT_AUTHOR_EMAIL` environment variable, or if
> > +	the environment variable is not set, the `user.email`
> > +	configuration variable.
> > +
> > +author.name::
> > +	The full name used for the author of newly created commits.
> > +	Defaults to the value of the `GIT_AUTHOR_NAME` environment variable, or
> > +	if the environment variable is not set,
> > +	the `user.email` configuration variable.
> > +
> > +committer.email::
> > +	The email address used for the committer of newly created commits.
> > +	Defaults to the value of the `GIT_COMMITTER_EMAIL` environment
> > +	variable, or if the environment variable is not set, the `user.email`
> > +	configuration variable.
> > +
> > +committer.name::
> > +	The full name used for the committer of newly created commits.
> > +	Defaults to the value of the `GIT_COMMITTER_NAME` environment
> > +	variable, or if the environment variable is not set, the `user.name`
> > +	configuration variable.
> > +
> >  user.email::
> >  	Your email address to be recorded in any newly created commits.
> >  	Can be overridden by the `GIT_AUTHOR_EMAIL`, `GIT_COMMITTER_EMAIL`, and
> > -	`EMAIL` environment variables.  See linkgit:git-commit-tree[1].
> > +	`EMAIL` environment variables or the `author.email` or
> > +	`committer.email` settings discussed above. See linkgit:git-commit-tree[1].
> >
> >  user.name::
> >  	Your full name to be recorded in any newly created commits.
> >  	Can be overridden by the `GIT_AUTHOR_NAME` and `GIT_COMMITTER_NAME`
> > -	environment variables.  See linkgit:git-commit-tree[1].
> > +	environment variables or the `author.name` or `committer.name`
> > +	settings discussed above. See linkgit:git-commit-tree[1].
> 
> Looks correct, although I wonder if we're at the point where it would be
> better to present this info as a table.

Maybe, but can we have someone do that in a separate patch? I ask because the documentation is not in a markup language and that would make setting up a table difficult for me at best with my screen reader.

Show 13 quoted lines
> > diff --git a/builtin/am.c b/builtin/am.c
> > index 95370313b6..53fdd22c45 100644
> > --- a/builtin/am.c
> > +++ b/builtin/am.c
> > @@ -1594,7 +1594,7 @@ static void do_commit(const struct am_state *state)
> >  	}
> >
> >  	author = fmt_ident(state->author_name, state->author_email,
> > -			state->ignore_date ? NULL : state->author_date,
> > +			WANT_AUTHOR_IDENT, state->ignore_date ? NULL : state->author_date,
> 
> This & a few other things in this series take the code beyond 79
> characters.

This doesn't look like it is beyond 79 characters to me, but that may be because I use a tab stop width of 4.

Can you reply again and flag the lines that are longer than 79 characters?

Thanks,
William
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 4 of 15 in “Add author and committer configuration settings”
  1. William HubbsJan 25, 2019
  2. 1/2 config: allow giving separate author and committer identsWilliam Hubbs, Jan 25, 2019
  3. Ævar Arnfjörð BjarmasonJan 25, 2019
  4. William HubbsJan 28, 2019
  5. Junio C HamanoJan 28, 2019
  6. Ævar Arnfjörð BjarmasonJan 28, 2019
  7. Junio C HamanoJan 28, 2019
  8. William HubbsJan 28, 2019
  9. William HubbsJan 29, 2019
  10. 2/2 tests: add test for separate author and committer identsWilliam Hubbs, Jan 25, 2019
  11. Ævar Arnfjörð BjarmasonJan 25, 2019
  12. William HubbsJan 26, 2019
  13. Ævar Arnfjörð BjarmasonJan 26, 2019
  14. Eric SunshineJan 27, 2019
  15. Ævar Arnfjörð BjarmasonJan 28, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.