login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
21
Re: [alsa-devel] HG -> GIT migration
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Takashi Iwai <tiwai@...>
To: Linus Torvalds <torvalds@...>
Cc: Rene Herman <rene.herman@...>, <alsa-devel@...>, Linux Kernel <linux-kernel@...>
Subject:
Re: [alsa-devel] HG -> GIT migration
Date: Wednesday, May 21, 2008 - 5:08 pm
At Wed, 21 May 2008 12:02:29 -0700 (PDT), Linus Torvalds wrote:
quoted text
> > 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 --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
Re: [alsa-devel] HG -> GIT migration
, Rene Herman
, (Wed May 21, 9:04 am)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 10:47 am)
Re: [alsa-devel] HG -> GIT migration
, Dmitry Torokhov
, (Thu May 22, 10:23 am)
Re: [alsa-devel] HG -> GIT migration
, Rene Herman
, (Wed May 21, 11:40 am)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 12:02 pm)
Re: [alsa-devel] HG -> GIT migration
, Linus Torvalds
, (Wed May 21, 12:16 pm)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 12:51 pm)
Re: [alsa-devel] HG -> GIT migration
, Linus Torvalds
, (Wed May 21, 1:43 pm)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 2:47 pm)
Re: [alsa-devel] HG -> GIT migration
, Linus Torvalds
, (Wed May 21, 3:02 pm)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 5:08 pm)
Re: [alsa-devel] HG -> GIT migration
, Linus Torvalds
, (Wed May 21, 2:11 pm)
Re: [alsa-devel] HG -> GIT migration
,
, (Wed May 21, 2:25 pm)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 2:49 pm)
Re: [alsa-devel] HG -> GIT migration
, Linus Torvalds
, (Wed May 21, 2:39 pm)
Re: [alsa-devel] HG -> GIT migration
, Jaroslav Kysela
, (Wed May 21, 9:48 am)
Re: [alsa-devel] HG -> GIT migration
, Rene Herman
, (Wed May 21, 10:40 am)
Re: [alsa-devel] HG -> GIT migration
, Takashi Iwai
, (Wed May 21, 10:52 am)
Re: [alsa-devel] HG -> GIT migration
, Rene Herman
, (Wed May 21, 11:29 am)
Re: [alsa-devel] HG -> GIT migration
, Stephen Rothwell
, (Wed May 21, 9:24 pm)
Re: [alsa-devel] HG -> GIT migration
, Rene Herman
, (Thu May 22, 4:43 pm)
Re: [alsa-devel] HG -> GIT migration
, Stephen Rothwell
, (Thu May 22, 7:40 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Newall
Re: Slow DOWN, please!!!
Andrew Morton
Re: Linux 2.6.21-rc4
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Dale Farnsworth
Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
859 guests
online.
Online users
firewaterdamage
Syndicate