All of lore.kernel.org
 help / color / mirror / Atom feed
From: <dag@cray.com>
To: Jens Lehmann <Jens.Lehmann@web.de>
Cc: Hilco Wijbenga <hilco.wijbenga@gmail.com>,
	Git Users <git@vger.kernel.org>,
	Junio C Hamano <gitster@pobox.com>, <greened@obbligato.org>
Subject: Re: organizing multiple repositories with dependencies
Date: Tue, 24 Apr 2012 12:22:59 -0500	[thread overview]
Message-ID: <nngbomh3uz0.fsf@transit.us.cray.com> (raw)
In-Reply-To: <4F8EB157.5060707@web.de> (Jens Lehmann's message of "Wed, 18 Apr 2012 14:19:35 +0200")

Jens Lehmann <Jens.Lehmann@web.de> writes:

> It's explicit too when using submodules, you can update each submodule
> to the commit you want, review and test that and then decide if you want
> to commit that (or e.g. it's parent) in the superproject or just rewind
> the submodule because the new changes don't work for you.

Yes, that is very useful.

> For a lot of use cases an automatic pull of changes you haven't even
> seen yet and then automatically promote them to the superproject
> (which is how I understand "git subtree pull", but I might be wrong)
> is undesirable, for others it might very well work.

Since subtrees are really just directories in a single-history
repository, a subtree pull does "prommote" the changes to the
superproject because there is no superproject/subproject.  That's one of
the reasons subtree can be used to create subprojects out of existing
repositories.

Subtrees and submodules really are very different models.  I see
advantages and dsadvantages to both depending on one's work flow.

> I agree and am willing to provide information about submodule use cases,
> advantages and problems, but I'm not a user of subtree so I can't really
> comment on it. Now that subtree is in git core, what about putting such
> a comparison under Documentation/subproject-support.txt?

That would be great.  Do you want to start work on that?  I can
contribute some text about git-subtree.

                               -Dave

  reply	other threads:[~2012-04-24 17:25 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-16  9:27 organizing multiple repositories with dependencies Namit Bhalla
2012-04-16 14:30 ` Jakub Narebski
2012-04-16 20:08   ` dag
2012-04-17 17:29     ` Hilco Wijbenga
2012-04-17 17:51       ` dag
2012-04-17 18:37       ` Seth Robertson
2012-04-17 19:55         ` Hilco Wijbenga
2012-04-17 20:51           ` dag
2012-04-17 21:43             ` Hilco Wijbenga
2012-04-17 22:25               ` PJ Weisberg
2012-04-17 22:49                 ` Hilco Wijbenga
2012-04-18 10:15                   ` Namit Bhalla
2012-04-18 12:09               ` Jens Lehmann
2012-04-24 17:17               ` dag
2012-04-24 18:54                 ` Hilco Wijbenga
2012-04-24 21:09                   ` PJ Weisberg
2012-04-24 22:04                     ` Hilco Wijbenga
2012-04-24 23:33                   ` dag
2012-04-30 19:25                     ` Phil Hord
2012-04-30 19:43                       ` dag
2012-04-18 12:19             ` Jens Lehmann
2012-04-24 17:22               ` dag [this message]
2012-04-24 17:59                 ` Seth Robertson
2012-04-24 20:26                   ` Jens Lehmann
2012-04-24 20:52                     ` Seth Robertson
2012-04-24 23:21                     ` dag
2012-04-28 17:31                       ` username localhost
2012-04-24 23:25                   ` dag
2012-04-25 12:48                     ` Seth Robertson
2012-04-27 14:23                       ` dag
2012-04-24 19:48 ` Eugene Sajine
2012-04-24 22:11   ` Hilco Wijbenga
2012-04-24 23:38     ` dag
2012-04-24 23:36   ` dag

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=nngbomh3uz0.fsf@transit.us.cray.com \
    --to=dag@cray.com \
    --cc=Jens.Lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=greened@obbligato.org \
    --cc=hilco.wijbenga@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.