From: Karthik Nayak Date: Thu, 27 Nov 2025 21:45:51 GMT Subject: Re: [PATCH v2 2/2] refs: add GIT_REF_URI to specify reference backend and directory Message-ID: In-Reply-To: Junio C Hamano writes: > Karthik Nayak 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. > 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