From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Peter Hutterer <peter.hutterer@who-t.net>
Cc: git@vger.kernel.org
Subject: Re: [RFC/PATCH] git-submodule: add support for --rebase.
Date: Wed, 8 Apr 2009 12:44:52 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.1.00.0904081241460.9157@intel-tinevez-2-302> (raw)
In-Reply-To: <20090408042212.GA4702@dingo.bne.redhat.com>
Hi,
On Wed, 8 Apr 2009, Peter Hutterer wrote:
> On Tue, Apr 07, 2009 at 02:38:37PM +0200, Johannes Schindelin wrote:
>
> > Peter wrote originally:
> >
> > > diff --git a/Documentation/git-submodule.txt b/Documentation/git-submodule.txt
> > > index 3b8df44..117ad3d 100644
> > > --- a/Documentation/git-submodule.txt
> > > +++ b/Documentation/git-submodule.txt
> > > @@ -177,6 +178,12 @@ OPTIONS
> > > This option is only valid for the update command.
> > > Don't fetch new objects from the remote site.
> > >
> > > +--rebase::
> > > + This option is only valid for the update command.
> >
> > This is unnecessary, it was mentioned in the synopsis.
>
> Correct, but in the same file the options --cached, --no-fetch, and
> --summary-limit do state that they are only valid for the
> update/status/summary commands, respectively. For consistency, we should
> either add this sentence to --rebase, or remove them from the others. I
> personally prefer having it there, just to make it more obvious.
Fair enough!
> > > + Forward-port local commits to the index of the containing repository.
> >
> > This is a bit misleading/unclear. I'd rather have it read like this:
> >
> > Instead of detaching the HEAD to the revision committed in the
> > superproject, rebase the current branch onto that revision.
>
> Hehe. I had something like this before and then decided to copy/paste
> the line from the git-rebase man page :)
>
> Changed to: "Rebase the current branch onto the index of the containing
> repository instead of detaching the HEAD." (I vaguely remember the rule
> that sentences are easier to understand if you have "blah instead of
> foo" rather than "instead of foo, blah")
> The phrase "index of the containing repository" is commonly used in this
> man page, so I think it's best to stick with it. That better now?
Hmm.
You can really rebase only onto a commit. And the index is not a commit,
so I do not like the wording (not even in the rebase man page).
But let's see what other reviewers say... :-)
> > > + If a a merge failure prevents this process, you will have to resolve
> > > + these failures with linkgit:git-rebase[1].
> > > +
> > > <path>...::
> > > Paths to submodule(s). When specified this will restrict the command
> > > to only operate on the submodules found at the specified paths.
> > > diff --git a/git-submodule.sh b/git-submodule.sh
> > > index 7c2e060..6180bf4 100755
> > > --- a/git-submodule.sh
> > > +++ b/git-submodule.sh
> >
> > You might want to error out when --rebase was passed with another
> > command than "update".
>
> cmd_init(), cmd_summary(), etc. have catch-all rules for unknown options
> to display the usage, so this is covered. (e.g. line 439,
> git-submodule.sh)
Oh, okay!
Other than the wording, I am completely happy with this patch.
Ciao,
Dscho
prev parent reply other threads:[~2009-04-08 10:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 11:14 [RFC/PATCH] git-submodule: add support for --rebase Peter Hutterer
2009-04-07 12:38 ` Johannes Schindelin
2009-04-08 4:22 ` Peter Hutterer
2009-04-08 10:44 ` Johannes Schindelin [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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.00.0904081241460.9157@intel-tinevez-2-302 \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).