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

Re: [PATCH] messages: avoid SHA-1 in end-user facing messages

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 14, 2020, 04:45 UTC
Message-ID
<xmqqlfihzvhu.fsf@gitster.c.googlers.com>
In-Reply-To
<ee61b773-91c0-4b30-1d5b-e941bba03867@gmail.com>
Derrick Stolee <stolee@gmail.com> writes:
Show 6 quoted lines
>> N_("Show blank SHA-1 for boundary commits (Default: off)")),
>> N_("Blank object names of boundary commits (Default: off)")),
>
> Is there a reason you dropped "show" here? Perhaps your
> intention is to use "blank" as a verb, but it read a bit
> awkwardly to me.

You guessed my intention correctly. By using the word "blank" as a verb (i.e. to fill the space, which should ordinarily contain something meaningful, with whitespace instead), I can shorten "Show blank" to compensate the lengthening of the message caused by replacing "SHA-1" with "object name".

It also is more correct. There is no "blank SHA-1"; blank cannot be a valid SHA-1 hash value. We are showing blank instead of SHA-1, and I found that "blank" as a verb exactly has that meaning, which was convenient.

The above is *NOT* to defend the choice of the exact phasing I used, but to explain the criteria we need to use to come up with a better alternative (in other words, why "show blank object name for..." is a better replacement).

A better phrasing to replace it is of course welcome.
Thanks.
Previous: Derrick StoleeNext: Eric Sunshine
Message 4 of 9 in “messages: avoid SHA-1 in end-user facing messages”
  1. messages: avoid SHA-1 in end-user facing messagesJunio C Hamano, Aug 14, 2020
  2. brian m. carlsonAug 14, 2020
  3. Derrick StoleeAug 14, 2020
  4. Junio C HamanoAug 14, 2020
  5. Eric SunshineAug 14, 2020
  6. Junio C HamanoAug 14, 2020
  7. Derrick StoleeAug 14, 2020
  8. Junio C HamanoAug 14, 2020
  9. messages: avoid SHA-1 in end-user facing messagesJunio C Hamano, Aug 14, 2020

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.