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
brian m. carlson <sandals@crustytoothpaste.net>
Date
Apr 21, 2021, 22:32 UTC
Message-ID
<YICoGeaxHdf6pemo@camp.crustytoothpaste.net>
In-Reply-To
<87tuo02gdd.fsf@evledraar.gmail.com>
On 2021-04-21 at 08:26:06, Ævar Arnfjörð Bjarmason wrote:
Show 6 quoted lines
> Using something like the:
> 
>     git --object-format=sha256 <cmd>
> 
> Approch I suggsted in
> https://lore.kernel.org/git/8735vq2l8a.fsf@evledraar.gmail.com/ ?

Yes, I generally like that approach and will likely adopt it with some modifications. For example, I think we'll still need some sanity checks to be sure that we're not allowing users to specify a totally different algorithm from what's in the repo when working with the repo because that will likely break things in a variety of ways.

What I want to do right now is figure out what additional changes are going to be required and in which programs these changes should be made, and that requires that I do more work in the series so I can have a better idea of what's involved. Since that's going to take some time, I'm going to drop those patches so I can get the rest of the series in shape.

Show 5 quoted lines
> 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.

I agree that's a nice improvement and would be happy to see it come in independent of my changes. I'll probably pick it up sooner or later if you don't get to it first.

-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 7 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.