From: Jonathan Corbet <corbet@lwn.net>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: linux-doc@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
David Rientjes <rientjes@google.com>
Subject: Re: [PATCH v2] Add a document on rebasing and merging
Date: Wed, 5 Jun 2019 14:32:49 -0600 [thread overview]
Message-ID: <20190605143249.768d4b36@lwn.net> (raw)
In-Reply-To: <20190605015456.GA2710@mit.edu>
On Tue, 4 Jun 2019 21:54:56 -0400
"Theodore Ts'o" <tytso@mit.edu> wrote:
> FYI, it looks like your patch somehow got hit by your text editor (or
> MUA's) line wrapping...
Weird, I haven't had a problem like that in decades. No idea what
happened here...
> > +
> > + - Realize that the rebasing a patch series changes the environment in
> > + which it was developed and, likely, invalidates much of the testing
> > that
> > + was done. A rebased patch series should, as a general rule, be treated
> > + like new code and retested from the beginning.
>
> Shouldn't "reparenting" be used in this paragraph?
>
> I suppose if a patch is getting dropped or modified that can
> invalidate some of the testing (although it really depends on the
> nature of what's being dropped or modified). And if it's just adding
> a Tested-by tag or a CVE number in the commit description, it's not
> going to invalidate any testing.
I had thought about it and chosen "rebasing", but I can change it.
> > +Another reason for doing merges of upstream or another subsystem tree is
> > to +resolve dependencies. These dependency issues do happen at times, and
> > +sometimes a cross-merge with another tree is the best way to resolve them;
> > +as always, in such situations, the merge commit should explain why the
> > +merge has been done. Take a momehnt to do it right; people will read those
> > +changelogs.
>
> It might also be useful to mention it might be useful to put the
> commits which are needed to solve the dependency problem on its own
> separate branch, based off of something like -rc2, and then each of
> the trees which need the prerequisite commits can merge in that
> branch.
That is (I think) in the following paragraph:
> Possible alternatives include agreeing with the maintainer to carry
> both sets of changes in one of the trees or creating a special branch
> dedicated to the dependent commits.
Perhaps that last line should read "...dedicated to the prerequisite
commits, which can then be merged into both trees" ?
Then perhaps I can finally declare victory on this thing? :)
Thanks,
jon
next prev parent reply other threads:[~2019-06-05 20:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 19:48 [PATCH v2] Add a document on rebasing and merging Jonathan Corbet
2019-06-05 1:54 ` Theodore Ts'o
2019-06-05 20:32 ` Jonathan Corbet [this message]
2019-06-06 9:12 ` Jani Nikula
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=20190605143249.768d4b36@lwn.net \
--to=corbet@lwn.net \
--cc=geert@linux-m68k.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rientjes@google.com \
--cc=torvalds@linux-foundation.org \
--cc=tytso@mit.edu \
/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).