# submodule name and path

2 messages from 2013-01-08 to 2013-01-08. Participants: 乙酸鋰, W. Trevor King.
Thread: https://gitlist.dev/t/32560

## 乙酸鋰, 2013-01-08 18:17

Subject: submodule name and path
Message-ID: <CAHtLG6TuHtk2P3w70-vUVGkdrv7R3VWyMzkGA4sr=G8xiSuEjA@mail.gmail.com>
URL: https://gitlist.dev/e/CAHtLG6TuHtk2P3w70-vUVGkdrv7R3VWyMzkGA4sr%3DG8xiSuEjA%40mail.gmail.com

```
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, 2013-01-08 18:29

Subject: Re: submodule name and path
Message-ID: <20130108182914.GH4662@odin.tremily.us>
URL: https://gitlist.dev/e/20130108182914.GH4662%40odin.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

```
