From: Junio C Hamano <gitster@pobox•com>
To: Jonathan Nieder <jrnieder@gmail•com>
Cc: Jens Lehmann <Jens.Lehmann@web•de>,
Robert Dailey <rcdailey.lists@gmail•com>,
Git <git@vger•kernel.org>, Heiko Voigt <hvoigt@hvoigt•net>
Subject: Re: Subtree with submodule inside?
Date: Wed, 06 Aug 2014 16:32:54 -0700 [thread overview]
Message-ID: <xmqqr40tkxcp.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20140806220832.GA12427@google.com> (Jonathan Nieder's message of "Wed, 6 Aug 2014 15:08:32 -0700")
Jonathan Nieder <jrnieder@gmail•com> writes:
> 2. Submodules aware of their superproject and of the parent's branches.
> In other words, submodules would act as thought under refs/ they
> had a symlink
>
> parent -> ../../../refs
>
> So you could do
>
> git checkout --recurse-submodules master
>
> cd path/to/submodule
> git checkout parent/heads/next
>
> This would avoid danger from "git gc" in submodules and would
> get rid of most of the motivation for named branches in the
> submodule, I'd think.
Are you assuming that they share their object stores?
next prev parent reply other threads:[~2014-08-06 23:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 17:20 Subtree with submodule inside? Robert Dailey
2014-08-06 17:51 ` Junio C Hamano
2014-08-06 18:18 ` Robert Dailey
2014-08-06 20:14 ` Jens Lehmann
2014-08-06 22:08 ` Jonathan Nieder
2014-08-06 23:32 ` Junio C Hamano [this message]
2014-08-06 23:51 ` Jonathan Nieder
2014-08-07 16:07 ` Heiko Voigt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqr40tkxcp.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=Jens.Lehmann@web$(echo .)de \
--cc=git@vger$(echo .)kernel.org \
--cc=hvoigt@hvoigt$(echo .)net \
--cc=jrnieder@gmail$(echo .)com \
--cc=rcdailey.lists@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox