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

Re: [PATCH 3/3] color: add support for 12-bit RGB colors

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 30, 2024, 18:41 UTC
Message-ID
<xmqqikzyzoam.fsf@gitster.g>
In-Reply-To
<xmqqmspazrj3.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 17 quoted lines
>>> @@ -146,7 +146,10 @@ test_expect_success 'non-hex character in RGB color' '
>>>  	invalid_color "#12x456" &&
>>>  	invalid_color "#123x56" &&
>>>  	invalid_color "#1234x6" &&
>>> -	invalid_color "#12345x"
>>> +	invalid_color "#12345x" &&
>>> +	invalid_color "#x23" &&
>>> +	invalid_color "#1x3" &&
>>> +	invalid_color "#12x"
>>>  '
>>
>> This made me wonder what we'd do with "#1", "#12", "#1234", etc. Looking
>> at the code change, I think we'd continue to reject them. I wonder if it
>> is worth covering here.
>
> Worth covering in this test, yes, but I am perfectly OK with leaving
> it outside the series as a #leftoverbit clean-up.

Ah, I take it back. The preimage was added by [2/3] so it is fair to say that that step would be the right place to do that from the get-go.

Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 13 in “color: add support for 12-bit RGB colors”
  1. 0/3 color: add support for 12-bit RGB colorsBeat Bolli, Apr 29, 2024
  2. 1/3 t/t4026-color: remove an extra double quote characterBeat Bolli, Apr 29, 2024
  3. Jeff KingApr 30, 2024
  4. 2/3 t/t4026-color: add test coverage for invalid RGB colorsBeat Bolli, Apr 29, 2024
  5. 3/3 color: add support for 12-bit RGB colorsBeat Bolli, Apr 29, 2024
  6. Junio C HamanoApr 29, 2024
  7. Beat BolliApr 29, 2024
  8. Jeff KingApr 30, 2024
  9. Junio C HamanoApr 30, 2024
  10. Junio C HamanoApr 30, 2024
  11. Junio C HamanoApr 30, 2024
  12. Jeff KingMay 3, 2024
  13. Taylor BlauApr 29, 2024

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.