* Push merges?
@ 2008-03-26 21:52 Ryan Leigh
2008-03-27 3:09 ` Jeff King
0 siblings, 1 reply; 2+ messages in thread
From: Ryan Leigh @ 2008-03-26 21:52 UTC (permalink / raw)
To: git
Hello all,
I've been getting to know git and I've stumbled across a "problem" and
I haven't yet been able to find a solution. For example, say I have a
branch "base" and two branches of that "foo" and "bar". I make some
change in "base", commit it, and now I would like to have it in both
"foo" and "bar". Is there a command that rather than get another
branch and merge with the current branch will instead take the current
branch and apply a merge on other branches? I've done google searches
and looking through documentation and tutorials and I can't seem to
find an answer one way or another. I wanted to make sure that before I
go write some script to handle it that what I am looking for isn't
already a feature.
Thank you,
Ryan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Push merges?
2008-03-26 21:52 Push merges? Ryan Leigh
@ 2008-03-27 3:09 ` Jeff King
0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2008-03-27 3:09 UTC (permalink / raw)
To: Ryan Leigh; +Cc: git
On Wed, Mar 26, 2008 at 02:52:06PM -0700, Ryan Leigh wrote:
> I've been getting to know git and I've stumbled across a "problem" and
> I haven't yet been able to find a solution. For example, say I have a
> branch "base" and two branches of that "foo" and "bar". I make some
> change in "base", commit it, and now I would like to have it in both
> "foo" and "bar". Is there a command that rather than get another
> branch and merge with the current branch will instead take the current
> branch and apply a merge on other branches? I've done google searches
No, there isn't such a command. Merges must be done one at a time
because they use the index and working tree to report conflicts.
So what you are asking for is the moral equivalent of:
for i in foo bar; do
git checkout $i && git merge master
done
and you could do it that way, except that the 'merge' step may fail with
conflicts that need to be fixed up by hand.
-Peff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-27 3:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 21:52 Push merges? Ryan Leigh
2008-03-27 3:09 ` Jeff King
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).