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

reftable (was: Re: none)

From
Han-Wen Nienhuys <hanwen@google.com>
Date
Nov 22, 2019, 10:38 UTC
Message-ID
<CAFQ2z_PbPEH3=9uJHqXdjV+pxF_-NSS2PGY1ZU-JtxRAuxN66g@mail.gmail.com>
In-Reply-To
<xmqqsgmjb13r.fsf@gitster-ct.c.googlers.com>
On Tue, Nov 19, 2019 at 8:53 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> > I spent the last few weeks cobbling together an implementation of the
> > reftable format in C and in Go. I thought this would be cool to add to
> > git-core, but I doubt whether I will have enough time to see such an
> > effort through. Maybe some of you would want to try integrating it
> > into the Git-core code base?  Example code is here:
> >
> >   https://github.com/google/reftable/blob/master/c/api.h#L153
> >
> > cheers!
>
> My initial impression was that the API overuses typedef.
I changed the code to use struct throughout.
> But the set of operations defined in the header file seemed at the
> right granularity in order to interface with the refs.h & refs/* API
> we have.  It however was unclear to me how transactional ref updates
> would work with it.
I implemented the reftable stack in Go, see
  https://godoc.org/github.com/google/reftable#Stack
which I could implement in C too. Would that work?
-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
Previous: Han-Wen NienhuysNext: Taylor Blau
Message 4 of 6 in “”
  1. Han-Wen NienhuysNov 20, 2019
  2. Junio C HamanoNov 20, 2019
  3. Han-Wen NienhuysNov 20, 2019
  4. reftable (was: Re: none)Han-Wen Nienhuys, Nov 22, 2019
  5. Taylor BlauNov 20, 2019
  6. Christian CouderNov 20, 2019

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.