Re: [PATCH 5/5] Add gitmodules(5)
From: Lars Hjemli <hidden>
Date: 2016-06-15 22:43:15
On 6/12/07, Sven Verdoolaege [off-list ref] wrote:
On Tue, Jun 12, 2007 at 09:05:21AM +0200, Lars Hjemli wrote:quoted
+The file contains one subsection per submodule, and the subsection value +is the name of the submodule. Each submodule section also contains the +following required keys:Your only argument for making them required was that Junio thought that not having them might be ambiguous, but he doesn't think so anymore.
Well, I actually also had an argument about being strict in the beginning and possibly loosen the rules later on. Anyways, I can do a patch on top of this series (if/when it's accepted) and let Junio decide to apply or drop the 'optional path' stuff.
quoted
+submodule.<name>.path:: + Defines the path, relative to the top-level directory of the gitYour previous patch had "_a_ path" instead of "_the_ path". I prefer the former since it allows a module to be checkoud out at multiple locations.
This is somewhat intentional. I want to move the submodule repos into .git/submodules/$name/ (with working dir) and symlink this directory when 'checking out' the submodule. This would be a simple solution for the following problems: -keeping submodule modifications between checkouts -having submodules within submodules Multiple checkout paths for a single submodule will bring havoc on this plan, so I need to ask: what is the use-case for multiple checkout paths? -- larsh