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

Re: [PATCH v2 2/2] refs: add GIT_REF_URI to specify reference backend and directory

From
Karthik Nayak <karthik.188@gmail.com>
Date
Nov 27, 2025, 21:45 UTC
Message-ID
<CAOLa=ZQnR9s33tsUbKUevsp7W0+EUcM4x55CLOQn_A2znVo6Fg@mail.gmail.com>
In-Reply-To
<xmqqy0nrjlc0.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 15 quoted lines
> Karthik Nayak <karthik.188@gmail.com> writes:
>
>> (2) My understanding of `string_list_split()` was that the `delim`
>> argument are a set of characters to split the string on.
>
> Ah, silly me.
>
>> But the mechanism isn't for 'git refs migrate', but rather we want to
>> add/update references via 'git update-ref' into the dry-run folder
>> created by the 'git refs migrate'. In the broader sense, we want to
>> manipulate references within this dry-run folder as if it is the
>> reference folder for the underlying repository.
>
> OK, I took the cover letter description too literally, it seems.
>

I did change the cover letter for this version with the plan of how this would be used. Let me know if you think I could clarify further.

Show 9 quoted lines
> If we want everybody in a single session to have a temporarily
> distorted view of the world, it has been a tried and proven way to
> use environment variables that override the default repository
> layout, e.g., GIT_DIR, GIT_WORK_TREE, and this "no reference
> interactions go there, not the usual place the repository
> configuration says" environment variable fits very well in the
> context.
>
> Thanks.
Yes! Exactly. Good to see we're on the same page :)
Karthik
Previous: Junio C Hamano
Message 8 of 8 in “refs: allow setting the reference directory”
  1. 0/2 refs: allow setting the reference directoryKarthik Nayak, Nov 26, 2025
  2. 1/2 refs: support obtaining ref_store for given dirKarthik Nayak, Nov 26, 2025
  3. Junio C HamanoNov 26, 2025
  4. 2/2 refs: add GIT_REF_URI to specify reference backend and directoryKarthik Nayak, Nov 26, 2025
  5. Junio C HamanoNov 26, 2025
  6. Karthik NayakNov 27, 2025
  7. Junio C HamanoNov 27, 2025
  8. Karthik NayakNov 27, 2025

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.