Re: [PATCH 01/10] doc: about submodule support with multiple worktrees

2019-01-17 Thread Duy Nguyen
On Thu, Jan 17, 2019 at 5:06 AM Stefan Beller wrote: > > clones from $GIT_COMMON_DIR/worktrees/X/modules to > > $GIT_COMMON_DIR/common/modules. > > ... from the submodule side of things this is big problem, > as the submodule is usually assumed at $GIT_DIR/modules/ > (I think we have not been stri

Re: [PATCH 01/10] doc: about submodule support with multiple worktrees

2019-01-16 Thread Stefan Beller
> The third problem is a big and complicaed one. Submodule clones complicated > (inside the superproject) are per-worktree. So if you have two > worktrees, and these have one submodule, you need space for _two_ > clones. This is definitely not elegant. The tenative plan is to move tentative? >

[PATCH 01/10] doc: about submodule support with multiple worktrees

2019-01-16 Thread Nguyễn Thái Ngọc Duy
This lays out the very first step of making multiple worktrees and submodules work together. The first problem is git-submodule keeps per-worktree config in $GIT_DIR/config, which is shared for all worktrees. This series makes git-submodule use extensions.worktreeConfig and write submodule.* to co