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

Re: [PATCH] submodule: allow gitsubmodules to be pointed at tags

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 24, 2024, 16:40 UTC
Message-ID
<xmqq4j9icn0t.fsf@gitster.g>
In-Reply-To
<m0sex2pi7q.fsf@epic96565.epic.com>
Sean Allred <allred.sean@gmail.com> writes:
> If you're ok with that behavior, then does it make sense to
> generalize it to the concept of a ref instead of just a tag name?
> This may do a better job of communicating the idea that no ref is
> inherently immovable.

Yup, I only took a brief glance at the patch, and I didn't quite see the point of duplicationg an almost parallel mechanism to an existing (--single-branch, set-branch) pair of the feature, only to replace "branch" with "tag" (the patch noise / code churn did not seem worth it).

In other words, is there a situation where a branch cannot be used (or using a branch is more cumbersome or awkward) when the user wants to use a tag with this patch? As users can just as easily move tags as they can move branches, the verb "freeze" used in the proposed log message probably does not reflect reality anyway, as you already pointed out.

Thanks.
Previous: Sean Allred
Message 4 of 4 in “submodule: allow gitsubmodules to be pointed at tags”
  1. submodule: allow gitsubmodules to be pointed at tagsdark0dave via GitGitGadget, Jun 17, 2024
  2. Sean AllredJun 24, 2024
  3. Sean AllredJun 24, 2024
  4. Junio C HamanoJun 24, 2024

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.