From: "Avery Pennarun" <apenwarr@gmail.com>
To: "Johannes Sixt" <j.sixt@viscovery.net>
Cc: git@vger.kernel.org
Subject: Re: git-submodule getting submodules from the parent repository
Date: Mon, 31 Mar 2008 17:24:13 -0400 [thread overview]
Message-ID: <32541b130803311424h339a30e6g4328ea27045c681d@mail.gmail.com> (raw)
In-Reply-To: <47F08343.20209@viscovery.net>
On Mon, Mar 31, 2008 at 2:22 AM, Johannes Sixt <j.sixt@viscovery.net> wrote:
> Avery Pennarun schrieb:
> > It's a pain to check out / mirror / check in / push. git-submodule
> > doesn't even init automatically when you check out A, so you have to
> > run it yourself. The relative paths of A, B, and C on your mirror
> > have to be the same as upstream. You can't make a local mirror of A
> > without mirroring B and C. B and C start out with a disconnected
> > HEAD, so if you check in, it goes nowhere, and then when you push,
> > nothing happens, and if you're unlucky enough to pull someone else's
> > update to A and then "git-submodule update", it forgets your changes
> > entirely. When you check in to C, you then have to check in to B, and
> > then to A, all by hand; and when you git-pull, you'd better to C, then
> > B, then A, or risk having A try to check out a revision from B that
> > you haven't pulled, etc.
>
> Would a "recurse" sub-command help your workflow?
>
> http://thread.gmane.org/gmane.comp.version-control.git/69834
Well, typing "git submodule recurse push" or something would allow me
to lose the same data without typing quite as much, so strictly
speaking I guess it would be an improvement :)
I'd like it even more if "git push" actually somehow refused to push
at all if I forgot to push in the submodules.
Have fun,
Avery
prev parent reply other threads:[~2008-03-31 21:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-29 22:35 git-submodule getting submodules from the parent repository Avery Pennarun
2008-03-29 23:22 ` Sam Vilain
2008-03-30 13:32 ` Eyvind Bernhardsen
2008-03-30 17:48 ` Sam Vilain
2008-03-30 19:50 ` Eyvind Bernhardsen
2008-03-30 20:19 ` Sam Vilain
2008-03-31 10:05 ` Eyvind Bernhardsen
2008-03-30 23:03 ` Avery Pennarun
2008-03-31 9:29 ` Eyvind Bernhardsen
2008-03-31 21:36 ` Avery Pennarun
2008-04-01 23:05 ` Sam Vilain
2008-04-01 23:56 ` Avery Pennarun
2008-04-02 0:35 ` Junio C Hamano
2008-04-02 2:03 ` Avery Pennarun
2008-04-02 20:06 ` Sam Vilain
2008-04-02 21:32 ` Junio C Hamano
2008-03-30 23:00 ` Avery Pennarun
2008-04-01 23:10 ` Sam Vilain
2008-03-31 6:22 ` Johannes Sixt
2008-03-31 21:24 ` Avery Pennarun [this message]
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=32541b130803311424h339a30e6g4328ea27045c681d@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=j.sixt@viscovery.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).