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, 20:55 UTC
Message-ID
<xmqqvbeudkyi.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150611204611.GA10114@glandium.org>
Mike Hommey <mh@glandium.org> writes:
Show 19 quoted lines
> On Thu, Jun 11, 2015 at 08:16:02AM -0700, Junio C Hamano wrote:
>> Mike Hommey <mh@glandium.org> writes:
>> 
>> > 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.
>
> I won't disagree here, but we are in desperate need for a word for those
> namespaces that aren't refs/namespaces, and stick to it (independently
> of the replace patch), but I've never seen one.
I actually don't agree with you ;-)

All these examples you cited above are merely talking about hierarchy and they do not have any desperate need for a new word.

They do not even need a technical term; they needed a way of saying "subdirectory" without limiting their reference to loose refs. If there weren't packed-refs, they would have said ".git/refs/heads and its subdirectories" and that would have been perfectly fine.

The "ref namespace" I mentioned in my first response is the only special one, I would think, so if we reword everybody else to say hierarchy instead of namespace, we are perfectly fine, I think.

Previous: Mike HommeyNext: Mike Hommey
Message 6 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.