Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Cherry pick a range of commit  () 1 Vote
Cherry pick a range of commit [message #1059923] Wed, 22 May 2013 08:05 Go to next message
naike k is currently offline naike k
Messages: 2
Registered: May 2013
Junior Member
Hi,

I'm working with EGit 2.3.
I want to know if it's possible to cherry pick a range of commit.

For example, I've:

A -> B -> C -> D -> E -> F -> G -> H (dev branch)
A -> B -> C -> D (master branch)

I want to do a cherry pick with commit F and G (and apply them into my master branch).
The result on master may look like that:
A -> B -> C -> D -> F -> G

Thank you in advance for help
Re: Cherry pick a range of commit [message #1060033 is a reply to message #1059923] Wed, 22 May 2013 15:08 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian Halstrick
Messages: 106
Registered: July 2009
Senior Member
You could check out master branch, right-click on F and say "Cherry Pick" and right-click on G and say "Cherry Pick".

Ciao
Chris
Re: Cherry pick a range of commit [message #1060052 is a reply to message #1060033] Wed, 22 May 2013 17:10 Go to previous messageGo to next message
R Shapiro is currently offline R Shapiro
Messages: 386
Registered: June 2011
Senior Member
Selecting each commit and cherry-picking it is ok for two items but it doesn't scale; I would not want to do this for 20 commits, for instance. So it can't be considered a real equivalent to cherry-picking a range, which EGit doesn't appear to support.

In many cases it's easier to use 'rebase --onto <branch< <start> <end>' rather than any form of direct cherry-picking . But I don't think EGit supports that operation either.

You'll have to use command-line Git for now.
Re: Cherry pick a range of commit [message #1060088 is a reply to message #1060052] Thu, 23 May 2013 04:27 Go to previous message
naike k is currently offline naike k
Messages: 2
Registered: May 2013
Junior Member
OK. Thank for your answer. Maybe cherry picking a range of commit (not only 2 or 3) will be possible with the next release of git.
Previous Topic:how to solve conflicts
Next Topic:How to get a file from specific commit (JGit)
Goto Forum:
  


Current Time: Wed Sep 17 07:48:44 GMT 2014

Powered by FUDForum. Page generated in 0.05374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software