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

Re: [PATCH] commit: reword --author error message

From
Philip Oakley <philipoakley@iee.org>
Date
Jan 16, 2015, 18:32 UTC
Message-ID
<C67968DA2DD34039AF6EC8B61AA1CA47@PhilipOakley>
In-Reply-To
<xmqqwq4m3a8k.fsf@gitster.dls.corp.google.com>
From: "Junio C Hamano" <gitster@pobox.com>
Show 34 quoted lines
> Jeff King <peff@peff.net> writes:
>
>> On Thu, Jan 15, 2015 at 09:48:26AM -0800, Junio C Hamano wrote:
>>
>>> > Rename the error message to make it clearer that the failure has 
>>> > two
>>> > reasons in this case:
>>> > "Bad --author parameter '%s': neither completely wellformed nor 
>>> > part of
>>> > an existing one"
>>>
>>> You are trying to help a user who thought "Who www.where.com" was a
>>> valid thing to pass to --author; "it is not completely wellformed"
>>> is not very helpful without making her realize what in that bogus
>>> string is not "completely well-formed".
>>>
>>> Perhaps
>>>
>>>   "--author '%s' is not 'Name <email>' and no existing author 
>>> matches that string"
>>>
>>> or somesuch?
>>
>> Yeah, I think that is OK. It is kind of clunky to read, but it 
>> contains
>> all of the necessary information to lead the user in the right
>> direction.
>
> Indeed it is clunky and not in the usual format.
>
> This might be better, perhaps?
>
>    die(_("--author '%s': not 'Name <email>' and matches no existing 
> author"));
/Bikeshed
     die(_("--author '%s': not 'Name <email>', nor matches any existing 
author"));
The 'not/and' construct didn't feel right here in the UK, but then many 
don't understand 'nor' either.
--
Philip
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 21 in “commit --amend --author error”
  1. Gunnar WagnerJan 13, 2015
  2. Michael J GruberJan 13, 2015
  3. Jeff KingJan 14, 2015
  4. Michael J GruberJan 15, 2015
  5. commit: reword --author error messageMichael J Gruber, Jan 15, 2015
  6. Michael J GruberJan 15, 2015
  7. Jeff KingJan 15, 2015
  8. Michael J GruberJan 15, 2015
  9. Junio C HamanoJan 15, 2015
  10. Jeff KingJan 16, 2015
  11. Junio C HamanoJan 16, 2015
  12. Philip OakleyJan 16, 2015
  13. Junio C HamanoJan 16, 2015
  14. Eric SunshineJan 16, 2015
  15. Junio C HamanoJan 16, 2015
  16. [PATCHv2] commit: reword --author error messageMichael J Gruber, Jan 26, 2015
  17. Jeff KingJan 26, 2015
  18. Junio C HamanoJan 27, 2015
  19. Jeff KingJan 27, 2015
  20. Philip OakleyJan 27, 2015
  21. Ramsay JonesJan 27, 2015

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.