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

Re: [PATCH 1/3] builtin/log: downcase the beginning of error messages

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 22, 2019, 20:40 UTC
Message-ID
<xmqqmumnpneh.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAPig+cRhk-0LBCmUQ4LszJrnmnXCDz7HxWqDnKX53woBYhr-KQ@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 6 quoted lines
>> -                       die(_("Failed to get upstream, if you want to record base commit automatically,\n"
>> +                       die(_("failed to get upstream, if you want to record base commit automatically,\n"
>>                               "please use git branch --set-upstream-to to track a remote branch.\n"
>>                               "Or you could specify base commit by --base=<base-commit-id> manually."));
>
> The capitalized "Or you..." is odd after s/Failed/failed/.

It briefly bothered me, too, but after realizing that this is not the whole sentence, it no longer looks so bad to me. The thing is that "Failed" (or "failed") is *not* what starts the message. This one is die(), so what you'd actually see is

	fatal: failed to get upstream, ... to track a remote branch.
	Or you could ...
with "fatal:" prefix.
Previous: Eric SunshineNext: Junio C Hamano
Message 4 of 9 in “format-patch --no-clobber”
  1. 0/3 format-patch --no-clobberJunio C Hamano, Feb 22, 2019
  2. 1/3 builtin/log: downcase the beginning of error messagesJunio C Hamano, Feb 22, 2019
  3. Eric SunshineFeb 22, 2019
  4. Junio C HamanoFeb 22, 2019
  5. 2/3 format-patch: notice failure to open cover letter for writingJunio C Hamano, Feb 22, 2019
  6. 3/3 format-patch: --no-clobber refrains from overwriting output filesJunio C Hamano, Feb 22, 2019
  7. Eric SunshineFeb 22, 2019
  8. Jeff KingFeb 23, 2019
  9. Ntentos StavrosMar 12, 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.