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

Re: Subject: [PATCH 3/9] refs/reftable: skip duplicate name checks

From
Patrick Steinhardt <ps@pks.im>
Date
Apr 3, 2024, 11:21 UTC
Message-ID
<Zg07vKzkeXt7l8RW@tanuki>
In-Reply-To
<CAOw_e7YspBkOo7QE0Z3QqWXd6P1OVnF9j3q7ircrce25KNbKLw@mail.gmail.com>
On Wed, Apr 03, 2024 at 11:47:10AM +0200, Han-Wen Nienhuys wrote:
Show 7 quoted lines
> I can't remember why I did not rely on the available routine (did it
> not exist at the time? or maybe I assumed the files backend relied on
> the file system to enforce well-formedness).  If the functionality is
> covered by refs_verify_refname_available, it's probably better to rip
> out of the reftable library (essentially, just delete refname.c and
> friends) rather than disable it. I am assuming libgit2 will have an
> equivalent routine as well.

Yeah, I was on the fence whether I do or don't want to delete the corresponding code. In any case, without Git as a user it's much more likely to start bitrotting even though we do have some unit tests in this area. Whether libgit2 does have a similar generic D/F check I cannot remember though -- it's been a very long time since I have written the reftable backend for libgit2, and the pull request is bitrotting.

My assumption is that as soon as there is going to be a second user of this library we'll have to do some cleanups regardless. So I'm inclined to delete the code now and potentially bring it back if we ever see that it's indeed important for external users.

Patrick
Previous: Han-Wen NienhuysNext: Junio C Hamano
Message 2 of 3 in “Subject: [PATCH 3/9] refs/reftable: skip duplicate name checks”
  1. Han-Wen NienhuysApr 3, 2024
  2. Patrick SteinhardtApr 3, 2024
  3. 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.