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

Re: reftable & jgit compatibility

From
Han-Wen Nienhuys <hanwenn@gmail.com>
Date
Apr 4, 2024, 06:44 UTC
Message-ID
<CAOw_e7Zzc2uLX0FtkJ3fB+wuNJt5piMmoYVes+ayApe8BEN3+g@mail.gmail.com>
In-Reply-To
<Zg5HXZrL_4BsyzfG@tanuki>
On Thu, Apr 4, 2024 at 8:23 AM Patrick Steinhardt <ps@pks.im> wrote:
Show 7 quoted lines
> > I think the easiest way to make this happen is if CGit would ship a
> > command to dump a raw reftable in a release soonish. Then JGit could
> > use that command to cross-check that a JGit-written reftable can be
> > read correctly by the CGit code.  By shipping just the dumper you
> > avoid having to wait for proper reftable support to land in git.
>
> You do realize that "proper reftable support" has already landed, right?
I had not realized this, and that's great news!
> So you can just use Git to create a reftable-enabled repository, write
> commits and then use JGit to access the whole repository instead of only
> checking a single table.

For testing, it's probably easier if you can work in terms of individual tables (because that is where the complexity lies: different blocksizes, restart frequencies, with index, without index, with reflog, without reflog etc.), but one can create controlled individual tables by creating a whole repo and then compacting it. OTOH, this would necessitate exposing all writer options to the git CLI, which is maybe a bit much.

-- 
Han-Wen Nienhuys - hanwenn@gmail.com - http://www.xs4all.nl/~hanwen
Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 5 of 11 in “reftable & jgit compatibility”
  1. Han-Wen NienhuysApr 3, 2024
  2. Patrick SteinhardtApr 3, 2024
  3. Han-Wen NienhuysApr 3, 2024
  4. Patrick SteinhardtApr 4, 2024
  5. Han-Wen NienhuysApr 4, 2024
  6. Patrick SteinhardtApr 4, 2024
  7. Han-Wen NienhuysApr 4, 2024
  8. Jeff KingApr 3, 2024
  9. Patrick SteinhardtApr 4, 2024
  10. Luca MilanesioApr 3, 2024
  11. Junio C HamanoApr 3, 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.