Re: Git submodule for a local branch?

2012-10-23 Thread W. Trevor King
On Tue, Oct 23, 2012 at 10:57:57PM +0200, Jens Lehmann wrote: > Am 22.10.2012 14:37, schrieb W. Trevor King: > > but cloning a remote repository (vs. checking out a local branch) > > seems to be baked into the submodule implementation. Should I be > > thinking about generalizing git-submodule.sh,

Re: Git submodule for a local branch?

2012-10-23 Thread Jens Lehmann
Am 22.10.2012 14:37, schrieb W. Trevor King: > I have a bunch of branches in my repo (a, b, c, …), and I'd like to > check them out into subdirectories of another branch (index). My > initial inclination was to use something like > > $ git checkout index > $ git branch > a > b > c

Re: Git submodule for a local branch?

2012-10-23 Thread W. Trevor King
On Mon, Oct 22, 2012 at 08:37:14AM -0400, W. Trevor King wrote: > but cloning a remote repository (vs. checking out a local branch) > seems to be baked into the submodule implementation. Perhaps --local would set submodule.$name.url to '.', and ome combination of GIT_WORK_TREE, GIT_DIR, and object

Git submodule for a local branch?

2012-10-22 Thread W. Trevor King
I have a bunch of branches in my repo (a, b, c, …), and I'd like to check them out into subdirectories of another branch (index). My initial inclination was to use something like $ git checkout index $ git branch a b c * index $ git submodule add -b a --reference ./ ./ dir-for