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

Re: Creation of a branch named that has a directory prefix equal to the name of another branch fail.

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 24, 2020, 20:36 UTC
Message-ID
<xmqqzh7ok5vu.fsf@gitster.c.googlers.com>
In-Reply-To
<DM5PR1801MB20762477763E6298C7FE6315F0770@DM5PR1801MB2076.namprd18.prod.outlook.com>
Tommaso Ercole <Tommaso.Ercole@qlik.com> writes:
> As per compiled bug report, creation of a branch that has a prefix that map to a folder, when that prefix is just an existing branch in the repo fails.
>
> I.E. 'a/b/c' when 'a/b' just exists.

Yup, that is one of the natural consequences of the design to organize refs in a directory like hierarchies. There are various ref backends (e.g. packed-refs that already exists, and reftable) that could potentially store both D and D/F at the same time, but it is very likely that the higher layer that calls into these ref backends will keep the behaviour as a policy, to ensure that those on older versions of Git can smoothly interoperate with newer versions of Git.

Thanks.
Previous: Han-Wen Nienhuys
Message 8 of 8 in “Creation of a branch named that has a directory prefix equal to the name of another branch fail.”
  1. Tommaso ErcoleJul 24, 2020
  2. Taylor BlauJul 24, 2020
  3. Jeff KingJul 24, 2020
  4. Junio C HamanoJul 24, 2020
  5. Tommaso ErcoleJul 27, 2020
  6. Bryan TurnerJul 27, 2020
  7. Han-Wen NienhuysJul 27, 2020
  8. Junio C HamanoJul 24, 2020

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.