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

Re: submodule name and path

From
W. Trevor King <wking@tremily.us>
Date
Jan 8, 2013, 18:29 UTC
Message-ID
<20130108182914.GH4662@odin.tremily.us>
In-Reply-To
<CAHtLG6TuHtk2P3w70-vUVGkdrv7R3VWyMzkGA4sr=G8xiSuEjA@mail.gmail.com>
On Wed, Jan 09, 2013 at 02:17:42AM +0800, 乙酸鋰 wrote:
> In doc, "submodule name" is not clearly mentioned?
> What is the purpose of "submodule name"?
> Must be same as "submodule path"?
> "submodule path" can be repeated, while "submodule name" unique?

The submodule name starts out the same as the submodule path, but the name stays constant through submodule moves, replacements, etc. The constant name is useful because out-of-tree configuration (e.g. stuff in .git/config and .git/modules/) won't have to adjust to submodule renames (except for core.worktree in .git/modules/*/config).

See:

http://article.gmane.org/gmane.comp.version-control.git/49621 http://article.gmane.org/gmane.comp.version-control.git/206659

Cheers, Trevor

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Previous: 乙酸鋰
Message 2 of 2 in “submodule name and path”
  1. 乙酸鋰Jan 8, 2013
  2. W. Trevor KingJan 8, 2013

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.