Re: [PATCH v2 0/3] Teach fetch and pull to recursively fetch submodules too
- From
Jens Lehmann <jens.lehmann@web.de>
- Date
- Oct 14, 2010, 18:14 UTC
- Message-ID
- <4CB7489A.60903@web.de>
- In-Reply-To
- <4CB65650.6080204@gmail.com>
Am 14.10.2010 03:01, schrieb Chris Packham:
Show 5 quoted lines
> For modules they are working on they to rebase their working branch to > the SHA1 recorded in the superproject. I think this kind of thing has > already been discussed on the list, not sure that I've seen a solution > that would work for us. For now all of this is is wrapped in a script > for the developers.
I assume you know the "--rebase" option and the "update=rebase" config setting for "git submodule update" and they don't work for you?
> Developers would probably want the fetch-if-super-gitlink-has-changed > behaviour.
Yeah, I think we need to support the fetch-if-super-gitlink-has-changed, always-fetch-all and never-fetch behavior. So in your example you could set fetch-if-super-gitlink-has-changed in the global config and use fetch-all for the submodule you are hacking on by changing its config if you want that.
> Hope that is a useful use-case.
Sure, thanks!