Re: [RFC PATCH 0/2] Teach fetch and pull to recursively fetch submodules too
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 30, 2010, 05:58 UTC
- Message-ID
- <7vocckhcb6.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4C7A819B.3000403@web.de>
Jens Lehmann <Jens.Lehmann@web.de> writes:
Show 9 quoted lines
> So I extended the fetch command to fetch populated submodules too. I > also added a command line option to fetch and pull and the second patch > introduces a per submodule config option to give users the chance to > control that behavior. > > And maybe we need a config option to customize that behavior > for all submodules or all repos too? > > Opinions?
I think your "if a particular submodule is already initialized, recursing into it is more likely than not what the user wants" is a sound heuristic.
I am not sure what you mean by "all submodules" nor "all repos", though. In order to trigger the feature this series introduces, users have a means to initialize all submodules in one go (update --recursive --init), and wouldn't that be sufficient?