Re: [RFC] git-submodule: multiple-level modules definition
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Mar 2, 2008, 18:18 UTC
- Message-ID
- <8c5c35580803021018v7590ad76kbbab2b1113e27666@mail.gmail.com>
- In-Reply-To
- <46dff0320803020911m30c8e3b3w80c0c92258a45f0f@mail.gmail.com>
On Sun, Mar 2, 2008 at 6:11 PM, Ping Yin <pkufranky@gmail.com> wrote:
> 4. Do we really need 'init' subcommand?
Yes: .git/config tells git which submodule(s) the user is interested in and where to fetch updates from for these submodules, while .gitmodules is used to map a submodule _name_ to a submodule _path_ and also to provide a url where submodule updates _can_ be fetched.
So the actual use of submodules is strictly a local configuration issue and as such it needs to be kept in .git/config. And to help the user populate .git/config with submodule information we have 'git submodule init'.
-- larsh