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

Re: [PATCH] Allow to control the namespace for replace refs

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 11, 2015, 15:16 UTC
Message-ID
<xmqq1thigtsd.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150611051339.GA3637@glandium.org>
Mike Hommey <mh@glandium.org> writes:
Show 10 quoted lines
> I do agree that this is all confusing, but allow me to point out that
> it's already plenty confusing: "namespace" is a term that has been used to
> designate a generic kind of namespace *and* refs/namespaces. See for
> example:
>
> https://github.com/git/git/blob/master/Documentation/git-describe.txt#L39
> https://github.com/git/git/blob/master/Documentation/git-fetch.txt#L113
> https://github.com/git/git/blob/master/Documentation/git-filter-branch.txt#L36
> (note how this one is specifically about refs/replace/)
> there are many more.
"One more breakage does not hurt" is not something we want to see.
> _REF kind of implies _one_ specific ref....

I thought about suggesting GIT_REPLACE_REFS for that exact reason, but decided against it, because (1) if you are using replace, then you know you are not using a single ref but a group of refs in a single hierarchy already, and (2) if you do not know what replace and notes are, GIT_REPLACE_REFS and GIT_NOTES_REF look just being inconsistent (even though the intention of the difference is to be more logical). s/S/_BASE/ would make that better, though.

> As for exposing a pref, I'm not entirely sure it makes sense to.

I don't see an immediate need for it, and it is easy to add later, so let's limit the scope of the initial adoption of the feature.

Thanks.
Previous: Mike HommeyNext: Mike Hommey
Message 4 of 9 in “Allow to control the namespace for replace refs”
  1. Allow to control the namespace for replace refsMike Hommey, Jun 11, 2015
  2. Junio C HamanoJun 11, 2015
  3. Mike HommeyJun 11, 2015
  4. Junio C HamanoJun 11, 2015
  5. Mike HommeyJun 11, 2015
  6. Junio C HamanoJun 11, 2015
  7. Allow to control where the replace refs are looked forMike Hommey, Jun 11, 2015
  8. Junio C HamanoJun 12, 2015
  9. Junio C HamanoJun 12, 2015

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.