Tight submodule bindings (was: Preferred local submodule branches)

2014-01-11 Thread W. Trevor King
ther local nor upstream > changes take precedence, so the user should either use "merge" or > "rebase" as update strategy or be asked to resolve the conflict > manually when "checkout" is configured and the branches diverged. > Does that make sense? The c

[RFC v3 0/4] Preferred local submodule branches

2014-01-08 Thread W. Trevor King
From: "W. Trevor King" In another branch of the submodule thread Francesco kicked off, I mentioned that we could store the preferred local submodule branch on a per-superbranch level if we used the .git/modules//config for local overrides [1]. Here's a patch series that greatly extends my v2 "su

Re: Preferred local submodule branches

2014-01-07 Thread W. Trevor King
On Tue, Jan 07, 2014 at 07:47:08PM -0800, W. Trevor King wrote: > #git checkout --recurse-submodules master > ( # 'git checkout --recurse-submodules' doesn't exist yet [2,3]. > # Even with that patch, 'git checkout' won't respect > # submodule..local-branch without further work.

Re: Preferred local submodule branches

2014-01-07 Thread W. Trevor King
On Wed, Jan 08, 2014 at 03:12:44AM +0100, Francesco Pretto wrote: > 2014/1/8 W. Trevor King : > > Note that I've moved away from “submodule..branch > > set means attached” towards “we should set per-superproject-branch > > submodule..local-branch explicitly” [1]. > > Honestly, I'm having an hard t

Re: Preferred local submodule branches (was: Introduce git submodule attached update)

2014-01-07 Thread W. Trevor King
On Tue, Jan 07, 2014 at 02:36:25PM -0800, W. Trevor King wrote: > There are three branches that submodule folks usually care about: > > 1. The linked $sha1 in the superproject (set explicitly for every >superproject commit, and thus for every superproject branch). > 2. The remote-tracking subm

Preferred local submodule branches (was: Introduce git submodule attached update)

2014-01-07 Thread W. Trevor King
On Tue, Jan 07, 2014 at 10:51:34PM +0100, Francesco Pretto wrote: > 2014/1/7 W. Trevor King : > > > > I'd be happy to hear ideas about superproject-branch-specific local > > overrides to a hypothetical submodule..local-branch, in the > > event that a developer doesn't like a default set in .gitmodu