Re: [RFC v2] submodule: Respect requested branch on all clones
- From
W. Trevor King <wking@tremily.us>
- Date
- Jan 9, 2014, 00:23 UTC
- Message-ID
- <20140109002328.GN29954@odin.tremily.us>
- In-Reply-To
- <CALas-iiX1=LAJQ_LsayhxB2zQTYVd5jxpVvOLOpdgHBW10ci1A@mail.gmail.com>
On Thu, Jan 09, 2014 at 12:54:54AM +0100, Francesco Pretto wrote:
> 2) Having 'git checkout', 'git checkout --recurse-submodules' and > finally 'git submodule checkout' is too much for me.
Agreed. Since 'git checkout' already exists and 'git checkout --recurse-submodules' is close [1,2], I think that means we should drop this and start arguing about adjusting 'git checkout --recurse-submodules' to checkout branches as well ;).
> Also, in my proposal, 'git submodule [tobedecided] --attach' would > also merge orphaned commits by default, and 'checkout' is not about > merge.
And that's good. Bailing with “you have orphaned commits, which you should integrate them with $some_integration_command before checking out a different branch” is better than having overlapping responsibilities between the checkout command and the integration command.
Cheers, Trevor
[1]: http://thread.gmane.org/gmane.comp.version-control.git/239695 [2]: http://article.gmane.org/gmane.comp.version-control.git/240117
-- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy