From: Takashi Iwai <tiwai@suse.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Rene Herman <rene.herman@keyaccess.nl>,
alsa-devel@alsa-project.org,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [alsa-devel] HG -> GIT migration
Date: Wed, 21 May 2008 23:08:49 +0200 [thread overview]
Message-ID: <s5h1w3v1i1q.wl%tiwai@suse.de> (raw)
In-Reply-To: <alpine.LFD.1.10.0805211155130.3081@woody.linux-foundation.org>
At Wed, 21 May 2008 12:02:29 -0700 (PDT),
Linus Torvalds wrote:
>
> On Wed, 21 May 2008, Takashi Iwai wrote:
> >
> > > - cherry-pick it. Is it a small, simple patch that you want, but that
> > > isn't really worth pulling in all the other stuff that you simply don't
> > > know?
> > >
> > > This isn't wrong. It shouldn't be *common*, but it's not wrong to have
> > > the same patch in two different branches. It makes sense if it is
> > > something you really want, but it's still not important or complex
> > > enough to actually mege everything else!
> >
> > Hm, that's what I didn't consider seriously. I thought cherry-picking
> > patches may cause merge errors easily.
>
> Cherry-picking can certainly cause merge errors, but not generally very
> often.
>
> Cherry-picking by definition will obviously apply the *same* patch to two
> different branches, and as a result, when you merge, that merge will
> generally be totally clean. So a trivial merge that succeeds without you
> even noticing is actually the common case.
>
> But you can certainly get merge failures where you then have to fix things
> up if there were *other* changes to that same area. At that point, you end
> up with two different branches that changed the same few lines
> differently, and it doesn't matter if then _some_ of the changes were
> identical - the fact that others were not is enough to cause a merge
> conflict.
>
> If cherry-picking is an uncommon situation, the merge problems are not
> going to show up (and when they do, they'll generally be simple to
> resolve, especially if you limit cherry-picking to simple fixes). But if
> you do a *lot* of cherry-picking, and you cherry-pick big changes, then
> yes, you'll start hitting merge problems.
>
> So cherry-picking is fine if you do it (a) fairly seldom and (b) just to
> small patches, because then the upsides of cherry-picking (easy to get a
> single fix without merging everything else) are bigger than the downsides
> (the potential merge problems later).
>
> IOW, think of cherry-picking as just another tool. It has upsides and
> downsides. It's not "wrong" per se, but you can use it the wrong way. You
> shouldn't use a hammer on a screw, and you shouldn't use cherry-picking
> for big and complex stuff.
Thanks for clarification!
Sounds like I should really do this more often to keep the devel tree
clean without merge or rebase.
Takashi
next prev parent reply other threads:[~2008-05-21 21:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.61.0805201314190.1798@tm8103-a.perex-int.cz>
[not found] ` <200805211430.06653.linux@audioscience.com>
[not found] ` <Pine.LNX.4.61.0805210805080.1798@tm8103-a.perex-int.cz>
[not found] ` <s5hve18vtml.wl%tiwai@suse.de>
[not found] ` <483415E7.5080402@keyaccess.nl>
[not found] ` <s5hfxsbx27f.wl%tiwai@suse.de>
2008-05-21 13:04 ` Rene Herman
2008-05-21 13:48 ` Jaroslav Kysela
2008-05-21 14:40 ` Rene Herman
2008-05-21 14:52 ` Takashi Iwai
2008-05-21 15:29 ` Rene Herman
2008-05-22 1:24 ` Stephen Rothwell
2008-05-22 20:43 ` Rene Herman
2008-05-22 23:40 ` Stephen Rothwell
2008-05-21 14:47 ` Takashi Iwai
2008-05-21 15:40 ` Rene Herman
2008-05-21 16:02 ` Takashi Iwai
2008-05-21 16:16 ` Linus Torvalds
2008-05-21 16:51 ` Takashi Iwai
2008-05-21 17:43 ` Linus Torvalds
2008-05-21 18:11 ` Linus Torvalds
2008-05-21 18:25 ` david
2008-05-21 18:39 ` Linus Torvalds
2008-05-21 18:49 ` Takashi Iwai
2008-05-21 18:47 ` Takashi Iwai
2008-05-21 19:02 ` Linus Torvalds
2008-05-21 21:08 ` Takashi Iwai [this message]
2008-05-22 14:23 ` Dmitry Torokhov
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=s5h1w3v1i1q.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rene.herman@keyaccess.nl \
--cc=torvalds@linux-foundation.org \
/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
all inboxes | Powered by JetHome®