threads / discuss / 32560

submodule name and path

Subject: submodule name and path

## tl;dr

2 messages between Jan 8, 2013 and Jan 8, 2013.

replies: 1people: 2as markdown or json

乙酸鋰· Jan 8, 2013, 18:17 UTC · lore
Hi,

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?

W. Trevor King· Jan 8, 2013, 18:29 UTC · re: 乙酸鋰 · lore

Re: submodule name and path

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

← back to recent threads