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

Re: [PATCH v6 3/3] ident: cleanup wrt ident's source

From
Dan Aloni <alonid@gmail.com>
Date
Feb 5, 2016, 21:03 UTC
Message-ID
<20160205210330.GA7245@gmail.com>
In-Reply-To
<20160205192413.GB7245@sigill.intra.peff.net>
On Fri, Feb 05, 2016 at 02:24:13PM -0500, Jeff King wrote:
Show 29 quoted lines
> On Fri, Feb 05, 2016 at 11:05:19AM -0800, Junio C Hamano wrote:
> 
> > Dan Aloni <alonid@gmail.com> writes:
> > 
> > > This change condenses the variables that tells where we got the user's
> > > ident into single enum, instead of a collection of booleans.
> > >
> > > In addtion, also have {committer,author}_ident_sufficiently_given
> > > directly probe the environment and the afformentioned enum instead of
> > > relying on git_{committer,author}_info to do so.
> > >
> > > Signed-off-by: Dan Aloni <alonid@gmail.com>
> > > Helped-by: Jeff King <peff@peff.net>
> > > Helped-by: Junio C Hamano <gitster@pobox.com>
> > > ---
> > >  ident.c | 126 ++++++++++++++++++++++++++++++++++++++++------------------------
> > >  1 file changed, 80 insertions(+), 46 deletions(-)
> > 
> > Peff what do you think?  I am asking you because personally I do not
> > find this particularly easier to read than the original, but since
> > you stared at the code around here recently much longer than I did
> > when doing the 1/3, I thought you may be a better judge than I am.
> 
> I'm not sure it is really worth it unless we are going to expose this to
> the user, and let them say "I am OK with IDENT_SOURCE_GUESSED, but not
> IDENT_SOURCE_GUESSED_BOGUS" or similar.
> 
> Without that, I think it is probably just making things a bit more
> brittle.
Okay, will drop it now.
-- 
Dan Aloni
Previous: Jeff King
Message 11 of 11 in “ident: add user.useConfigOnly boolean for when ident shouldn't be guessed”
  1. ident: add user.useConfigOnly boolean for when ident shouldn't be guessedDan Aloni, Feb 5, 2016
  2. 1/3 fmt_ident: refactor strictness checksDan Aloni, Feb 5, 2016
  3. 2/3 ident: add user.useConfigOnly boolean for when ident shouldn't be guessedDan Aloni, Feb 5, 2016
  4. Jeff KingFeb 5, 2016
  5. Eric SunshineFeb 5, 2016
  6. Junio C HamanoFeb 5, 2016
  7. Dan AloniFeb 5, 2016
  8. 3/3 ident: cleanup wrt ident's sourceDan Aloni, Feb 5, 2016
  9. Junio C HamanoFeb 5, 2016
  10. Jeff KingFeb 5, 2016
  11. Dan AloniFeb 5, 2016

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.