Re: [PATCH v3 2/3] Add the 'fetch.recurseSubmodules' config setting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jens Lehmann
Date: Friday, November 12, 2010 - 4:54 am

Am 11.11.2010 20:00, schrieb Jonathan Nieder:

Hmm, but we have at least three modes of how to update them:

1) Never fetch the submodule (to get new commits the user has to run
   "git fetch --recurse-submodules" by hand)

2) Fetch the submodule each time you fetch the superproject (Which is
   really handy when you do development in the submodule too but can
   be really inconvenient when you don't)

3) Update submodules only when new recorded commits are fetched in
   the superproject (This mode is not added with the current patch
   series but will be in one of the next)

So you would need a config option for that anyway, no? And that is why
I'd rather like to have a separate fetch option to control that behavior
instead of an implicit "if-it's-to-be-checked-out-fetch-it-too" approach.



That situation should be handled by method 3) above which was proposed
for such a use case.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v3 2/3] Add the 'fetch.recurseSubmodules' confi ..., Jens Lehmann, (Fri Nov 12, 4:54 am)