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

Re: [RFC PATCH] Move git-dir for submodules

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 21, 2011, 23:47 UTC
Message-ID
<7vmxg7yz4y.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vr55jyzlb.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 14 quoted lines
> Phil Hord <hordp@cisco.com> writes:
>
>> Now that you mention it, what happens if the submodule name changes in
>> the history?  What happens if the submodule URL (and possibly the entire
>> submodule contents) changes in the history?
>
> The original idea (dating back before "git submodule" was written, but
> only when "gitlink" was added to the index and the tree objects) was to
> identify the submodule by name and refer to the same logical entity with
> the same name, so that no matter where in the superproject's working tree
> hierarchy you change your mind to bind a particular submodule (say, "the
> Linux kernel upstream source") at (i.e. "path"), or from which mirror of
> the kernel repository you recommend your downstream to clone it from
> (i.e. "url" in .gitmodules).

Sorry for an incomplete sentence. "No matter...." above should conclude with "you know you are talking about the same module that retains the identity of its .git metadata directory."

Previous: Junio C HamanoNext: Fredrik Gustafsson
Message 6 of 8 in “Move git-dir for submodules”
  1. Move git-dir for submodulesFredrik Gustafsson, Jul 21, 2011
  2. Junio C HamanoJul 21, 2011
  3. Phil HordJul 21, 2011
  4. Phil HordJul 21, 2011
  5. Junio C HamanoJul 21, 2011
  6. Junio C HamanoJul 21, 2011
  7. Fredrik GustafssonJul 22, 2011
  8. Junio C HamanoJul 22, 2011

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.