From: Johan Herland <johan@herland.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Avery Pennarun <apenwarr@gmail.com>,
Junio C Hamano <gitster@pobox.com>,
git@vger.kernel.org, markus.heidelberg@web.de,
Peter Hutterer <peter.hutterer@who-t.net>
Subject: Re: git submodule update --merge
Date: Tue, 26 May 2009 00:48:54 +0200 [thread overview]
Message-ID: <200905260048.54625.johan@herland.net> (raw)
In-Reply-To: <alpine.DEB.1.00.0905252149370.4288@intel-tinevez-2-302>
On Monday 25 May 2009, Johannes Schindelin wrote:
> On Mon, 25 May 2009, Avery Pennarun wrote:
> > On Mon, May 25, 2009 at 2:57 PM, Johannes Schindelin wrote:
> > > Because in the project I use submodules most heavily, there is one
> > > recurring theme: you cannot push to the submodules. And by "you" I
> > > mean "a regular user".
> > >
> > > So virtually all you do in these submodules cannot be pushed at all.
> > > It has to be submitted to the respective submodule maintainer.
> > >
> > > And guess what happens in such a case when you set that tentative
> > > "update" variable to "merge"?
> > >
> > > Exactly.
> > >
> > > FWIW I consider any scenario where the average users have push access
> > > to the submodule a toy scenario.
Well, in the scenario I described earlier, the project developers (your
"average users") _do_ have push access to the submodules. And that scenario
is certainly not a toy scenario.
> > I have the same problem. Out of curiosity, how do you handle the case
> > where you really need to make a change to the submodule and let your
> > team members see that change, even though the submodule's upstream is
> > slow and/or doesn't accept the patch?
> >
> > In that situation, we've had to make local shared mirrors of all the
> > submodules and point .gitmodules at that. But that would be your
> > "toy" scenario - our local users have push access to the submodule.
For the purposes of this discussion, this is pretty close to the use case I
described earlier in my scenario as well. Thanks, Avery, for presenting the
argument in a more readable manner.
> Happily enough, our changes were accepted so far.
>
> For a few branches, though, the patches are not ready to be sent upstream
> (or, from a certain viewpoint, sometimes downstream) yet, so we do have
> local forks for those working on that.
>
> Note, however, that even in this case, it is better to use 'rebase'
> rather than 'merge', for exactly the same (I almost wrote "unconvincing")
> reason as before.
Yes, and I have never argued that your "average users" should use 'merge'.
Indeed I have not argued that 'merge' is suitable for your workflow _at_
_all_.
One of the guiding principles I have learned from earlier submodule
discussions on this list, is that the git submodule commands should NOT
impose restrictions on the workflows available to its users. But in this
case you are using your own workflow to argue what should, and should not be
part of the git submodule repertoire. I am arguing that there are
_different_ workflows, with _different_ requirements where 'merge' would be
a useful addition. Just because you won't ever use it, does not mean that it
will not be useful to anybody else.
> P.S.: in some cases, the submodules' "upstreams" are maintained by team
> members, but that is very much on purpose. They are trusted maintainers,
> and there is no reason to let some young and maybe overly energetic
> friends push to such a trusted repository.
Do you argue that protecting these "young and maybe overly energetic"
developers from themselves should be hardcoded into the git submodule
behaviour, in such a way that it obscures the availability of other
alternative submodule workflows?
Have fun! :)
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
next prev parent reply other threads:[~2009-05-25 22:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 8:05 What's cooking in git.git (May 2009, #02; Sun, 17) Junio C Hamano
2009-05-17 9:45 ` Jakub Narebski
2009-05-17 17:58 ` Junio C Hamano
2009-05-17 18:27 ` Jakub Narebski
2009-05-17 11:41 ` David Aguilar
2009-05-18 13:36 ` Johan Herland
2009-05-18 19:40 ` Markus Heidelberg
2009-05-18 21:55 ` Johan Herland
2009-05-19 0:35 ` [PATCH] git-submodule: add support for --merge Johan Herland
2009-05-19 1:33 ` What's cooking in git.git (May 2009, #02; Sun, 17) Junio C Hamano
2009-05-19 7:23 ` Johan Herland
2009-05-19 8:17 ` Johannes Schindelin
2009-05-19 8:45 ` Johan Herland
2009-05-19 11:53 ` Johannes Schindelin
2009-05-19 13:26 ` git submodule update --merge (Was: What's cooking in git.git (May 2009, #02; Sun, 17)) Johan Herland
2009-05-25 11:59 ` Johan Herland
2009-05-25 18:33 ` git submodule update --merge Junio C Hamano
2009-05-25 18:57 ` Johannes Schindelin
2009-05-25 19:04 ` Avery Pennarun
2009-05-25 19:54 ` Johannes Schindelin
2009-05-25 22:48 ` Johan Herland [this message]
2009-05-25 22:10 ` Johan Herland
2009-05-25 23:15 ` git submodule update --merge (Was: What's cooking in git.git (May 2009, #02; Sun, 17)) Peter Hutterer
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=200905260048.54625.johan@herland.net \
--to=johan@herland.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=markus.heidelberg@web.de \
--cc=peter.hutterer@who-t.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).