From: Jay Soffian <jaysoffian@gmail.com>
To: git <git@vger.kernel.org>
Subject: merge -s ours question
Date: Mon, 8 Mar 2010 17:26:20 -0500 [thread overview]
Message-ID: <76718491003081426j4329e322we91fc6fe13f2d03@mail.gmail.com> (raw)
Here's the scenario,
I have a muddled development branch that has a mix of local development and
upstream merges:
upstream 1--2--3--4--5
\ \ \
dev o--A--x--B--x ... Y
It took a lot of work, but I backported everything newer than A using rebase
and cherry-pick, and omitting the merges, giving me a dev' clean of merges
from upstream:
dev' o--A'--B' ... Y'
/
upstream 1--2--3--4--5
\ \ \
dev o--A--x--B--x ... Y
Now it turns out that going forward, I need two development branches, one
that's based on a newer version of upstream for which the merge work was
already done in the original dev. In an ideal world I'd have this history:
upstream 1--2--3--4--5
\ \
dev2 \ o--o--o--o
\
dev1 o--o--o--o--o
And I would periodically merge dev1 into dev2 (dev2 requires the work being
done on dev1). The problem is that my backported dev' has a mix of dev1 and
dev2 and it's impossible for me to tease them apart at this point. So my plan
was to do this:
dev' o--A'--B' ... Y'
/ \
upstream 1--2--3--4--5 \
\ \ \ \
dev o--A--x--B--x ... Z
Where Z is created using using "git merge -s ours dev'". Is it correct that
this should do nothing more than give me a new merge base for dev and dev'?
Then going forward I can merge from dev' to dev per usual.
Thanks,
j.
next reply other threads:[~2010-03-08 22:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-08 22:26 Jay Soffian [this message]
2010-03-08 22:57 ` merge -s ours question Junio C Hamano
2010-03-08 23:33 ` Jay Soffian
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=76718491003081426j4329e322we91fc6fe13f2d03@mail.gmail.com \
--to=jaysoffian@gmail.com \
--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).