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

Re: What's cooking in git.git (Apr 2021, #05; Mon, 19)

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Apr 21, 2021, 08:26 UTC
Message-ID
<87tuo02gdd.fsf@evledraar.gmail.com>
In-Reply-To
<YH9gPt410QBRjG59@camp.crustytoothpaste.net>
On Wed, Apr 21 2021, brian m. carlson wrote:
Show 14 quoted lines
> On 2021-04-20 at 13:52:33, Ævar Arnfjörð Bjarmason wrote:
>> This has a textual conflict (no longer a semantic one) with the above
>> ab/unexpected-object-type etc.
>> 
>> As noted in
>> https://lore.kernel.org/git/87mttx121j.fsf@evledraar.gmail.com/ I had
>> questions about the approach in hash-object.c, in particular I have
>> POC/WIP patches that make one of brian's TODO tests pass, by doing the
>> "we are in SHA256 mode" earlier, which is also less code as we won't
>> need to add special handling to a large part of hash-object.c (or, in
>> the future, other such commands).
>
> I'm going to drop those first two patches for now, since I plan to
> implement them in a different way in the future.
Using something like the:
    git --object-format=sha256 <cmd>

Approch I suggsted in https://lore.kernel.org/git/8735vq2l8a.fsf@evledraar.gmail.com/ ?

In any case having something like the OPT_OBJECT_FORMAT() I added in that WIP patch would make sense wouldn't it, to reduce the duplication of current "object-format". It would also save each current caller from doing the "unknown" and other sanity checks, since they could rely on parse_options() having died in that case.

Previous: brian m. carlsonNext: brian m. carlson
Message 6 of 10 in “What's cooking in git.git (Apr 2021, #05; Mon, 19)”
  1. Junio C HamanoApr 19, 2021
  2. Matheus Tavares BernardinoApr 20, 2021
  3. Ævar Arnfjörð BjarmasonApr 20, 2021
  4. Junio C HamanoApr 20, 2021
  5. brian m. carlsonApr 20, 2021
  6. Ævar Arnfjörð BjarmasonApr 21, 2021
  7. brian m. carlsonApr 21, 2021
  8. Junio C HamanoApr 20, 2021
  9. Jeff KingApr 23, 2021
  10. Jeff HostetlerApr 20, 2021

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.