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

Re: [PATCH] RFC: A new type of symbolic refs

From
Stefan Beller <sbeller@google.com>
Date
Jul 17, 2017, 19:21 UTC
Message-ID
<CAGZ79kYjGBg6ep07OCbdGkwZkauZ8T07d-Z7L4_wym02zaOsMA@mail.gmail.com>
In-Reply-To
<B998F81875C940B1B7D4D26764B44B04@PhilipOakley>
On Sun, Jul 16, 2017 at 6:04 AM, Philip Oakley <philipoakley@iee.org> wrote:
Show 8 quoted lines
>
> If I understand this correctly, the new type is the 'starts_with(buf, "repo:"))'.
>
> It just wasn't obvious from the text that the new type is "repo:" as you
> never spell it out in the commit message. Should it be included in the
> message?
>
> Have I understood correctly?
Yes, you understood correctly.

The idea is to allow submodules to "borrow" its refs from the superproject. My original idea was to only borrow HEAD from the superproject, but this can be extended to more branches.

By having a more generic way of borrowing refs from another repo, this can also be a different repo than the superproject (I don't know the use case for this yet, but let's not have a to specific proposal).

Let's see how this RFC fares in further interest from the community.
Previous: Philip OakleyNext: Junio C Hamano
Message 4 of 7 in “RFC: A new type of symbolic refs”
  1. RFC: A new type of symbolic refsStefan Beller, Jul 11, 2017
  2. Philip OakleyJul 16, 2017
  3. Philip OakleyJul 16, 2017
  4. Stefan BellerJul 17, 2017
  5. Junio C HamanoJul 17, 2017
  6. Stefan BellerJul 17, 2017
  7. Junio C HamanoJul 18, 2017

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.