git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kris Shannon <kris@shannon.id.au>
To: Git Mailing List <git@vger.kernel.org>
Subject: Re: [Q] merging from one (kernel) stable to another?
Date: Tue, 31 Mar 2009 15:20:20 +1100	[thread overview]
Message-ID: <e51f4f550903302120s62f6056bg95f7a5aca4ec3d@mail.gmail.com> (raw)
In-Reply-To: <49D09207.9080407@op5.se>

2009/3/30 Andreas Ericsson <ae@op5.se>
>
> Brian Foster wrote:
>>
>>  Whilst this question involves linux(-mips) kernel tree,
>>  it's a git(-related?) question, not a kernel question ....
>>
...
>>  But (using 2.6.21-stable and 2.6.22-stable as proxies),
>>  tests indicate that going from .26.8 to .27 or anything
>>  later will have numerous conflicts (100s? in more than
>>  30 files).  Thinking about it, this isn't too surprising
>>  since the -stable branches cherry-pick important/benign
>>  fixes from later revisions.
>>
>>  What's frustrating is that in essentially all “conflict”
>>  cases, the resolution is simple:  Use the later version.
>
> The trouble is "essentially all", as opposed to "all". Git
> can never know which of the conflicts are which, so it will
> leave it all up to you.

git mailing list <git@vger.kernel.org>

What you could do is something like:

git checkout -b mystable-27 linux-2.6.27-stable
git merge -s ours linux-2.6.26-stable
git checkout local-changes-26
git merge mystable-27

The extra merge might allow git to distinguish between 26->27
conflicts and conflicts due to your local-changes.

BTW, when doing these merges between release branches you
probably want to increase merge.renamelimit.

  parent reply	other threads:[~2009-03-31  4:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30  8:24 [Q] merging from one (kernel) stable to another? Brian Foster
2009-03-30  9:33 ` Andreas Ericsson
2009-03-30 10:38   ` Johannes Sixt
2009-03-30 11:58     ` Brian Foster
2009-03-30 12:19       ` Johannes Sixt
2009-03-30 12:40         ` Brian Foster
2009-03-30 12:19       ` Andreas Ericsson
2009-03-30 12:51         ` Brian Foster
2009-03-30 13:52           ` Andreas Ericsson
2009-03-30 15:20   ` Ping Yin
2009-03-31  4:20   ` Kris Shannon [this message]
2009-03-30 17:31 ` Daniel Barkalow
2009-03-31  7:30   ` Brian Foster
2009-03-30 18:23 ` Uwe Kleine-König

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=e51f4f550903302120s62f6056bg95f7a5aca4ec3d@mail.gmail.com \
    --to=kris@shannon.id.au \
    --cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).