Re: [PATCH 1/6] fetch/pull: recurse into submodules when necessary
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Feb 24, 2011, 00:22 UTC
- Message-ID
- <20110224002236.GB7433@elie>
- In-Reply-To
- <4D659818.4070107@web.de>
Jens Lehmann wrote:
> But maybe > fetch_populated_submodules() should empty the string_list it just > worked through?
No, I don't think so. There might be cases where you want to fetch and then check out the changed submodules some day.
What might be nice is for cmd_fetch to clear the list before it returns. That way, if this functionality ever gets lib-ified then there will be that reminder about how to reset the state. And valgrind can be a little quieter. :)