git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Keeping <john@keeping.me.uk>
To: Jens Lehmann <Jens.Lehmann@web.de>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: What's cooking in git.git (May 2013, #09; Wed, 29)
Date: Mon, 3 Jun 2013 15:54:05 +0100	[thread overview]
Message-ID: <20130603145405.GJ1072@serenity.lan> (raw)
In-Reply-To: <20130531194051.GC1072@serenity.lan>

On Fri, May 31, 2013 at 08:40:51PM +0100, John Keeping wrote:
> On Thu, May 30, 2013 at 09:23:40PM +0200, Jens Lehmann wrote:
> > Am 30.05.2013 01:58, schrieb Junio C Hamano:
> > > * jk/submodule-subdirectory-ok (2013-04-24) 3 commits
> > >   (merged to 'next' on 2013-04-24 at 6306b29)
> > >  + submodule: fix quoting in relative_path()
> > >   (merged to 'next' on 2013-04-22 at f211e25)
> > >  + submodule: drop the top-level requirement
> > >  + rev-parse: add --prefix option
> > > 
> > >  Allow various subcommands of "git submodule" to be run not from the
> > >  top of the working tree of the superproject.
> > 
> > The summary and status commands are looking good in this version
> > (they are now showing the submodule directory paths relative to
> > the current directory). Apart from that my other remarks from
> > gmane $221575 still seem to apply. And this series has only tests
> > for status, summary and add (and that just with an absolute URL),
> > I'd rather like to see a test for each submodule command (and a
> > relative add to) to document the desired behavior.
> 
> To summarize what I think are the outstanding issues from your email:
> 
> * Should '$sm_path' be relative in "submodule foreach"?
> * "submodule add" with a relative path
> * "submodule init" initializes all submodules
> * Tests
> 
> The current version does make '$sm_path' relative in "submodule
> foreach", although it's hard to spot because we have to leave doing so
> until right before the "eval".
> 
> I'm not sure what you mean about "submodule add" - the new version
> treats the "path" argument as relative (providing it is not an absolute
> path).  The "repository" argument is not changed by running from a
> subdirectory but I think that's correct since it is documented as being
> relative to the superproject's origin repository.
> 
> "submodule init" is behaving in the same way as "deinit" - if you say
> "submodule init ." then it will only initialize submodules below the
> current directory.  The difference is that "deinit" dies if it is not
> given any arguments whereas "init" will initialize everything from the
> top level down.  I'm not sure whether to change this; given the
> direction "git add -u" is heading in for 2.0 I think the current
> behaviour is the most consistent with the rest of Git.
> 
> > But I'm not sure if it's better to have another iteration of this
> > series or to address the open issues a follow-up series. Having
> > status, summary and add - at least with absolute URLs - lose the
> > toplevel requirement is already a huge improvement IMO. Opinions?
> 
> I think the only thing outstanding is tests.  I'm happy to add those as
> a follow-up or in a re-roll.

I started looking at this over the weekend but didn't get time to get
something ready to be submitted.  I did find a couple of issues in
cmd_foreach that make me think this topic should be dropped when "next"
is rewound and held in pu waiting for a re-roll.

  reply	other threads:[~2013-06-03 14:54 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-29 23:58 What's cooking in git.git (May 2013, #09; Wed, 29) Junio C Hamano
2013-05-30  9:47 ` Thomas Rast
2013-05-30  9:56   ` Ramkumar Ramachandra
2013-06-02 23:44   ` Junio C Hamano
2013-05-30 19:18 ` Jens Lehmann
2013-06-02 18:50   ` Junio C Hamano
2013-06-03 21:27     ` Jens Lehmann
2013-07-01 22:05       ` Junio C Hamano
2013-05-30 19:23 ` Jens Lehmann
2013-05-31 19:40   ` John Keeping
2013-06-03 14:54     ` John Keeping [this message]
2013-06-03 15:30       ` Junio C Hamano
2013-06-03 21:47     ` Jens Lehmann
2013-06-03 22:23       ` John Keeping
2013-06-04  5:29         ` Heiko Voigt
2013-06-04  8:10           ` John Keeping
2013-06-04 11:17             ` Heiko Voigt
2013-06-04 12:48               ` John Keeping
2013-06-04 21:39                 ` Jens Lehmann
2013-06-04 22:04                   ` John Keeping
2013-06-04 22:57                 ` Re: " Phil Hord
2013-06-05  8:19                   ` John Keeping
2013-05-31  6:16 ` Øystein Walle

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=20130603145405.GJ1072@serenity.lan \
    --to=john@keeping.me.uk \
    --cc=Jens.Lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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 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).