Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 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 kFriend
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 HalstrickFriend
Messages: 274
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 ShapiroFriend
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 messageGo to next message
naike k is currently offline naike kFriend
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.
Re: Cherry pick a range of commit [message #1853654 is a reply to message #1060088] Tue, 12 July 2022 13:13 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 4
Registered: January 2021
Junior Member
almost 10 years later and its still not possible... :-(
Re: Cherry pick a range of commit [message #1853704 is a reply to message #1853654] Thu, 14 July 2022 07:06 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Feel free to scratch your itch and contribute an implementation.
https://wiki.eclipse.org/EGit/Contributor_Guide
Previous Topic:is GIT required
Next Topic:JGIT LS Remote Repositor using SSH
Goto Forum:
  


Current Time: Thu Apr 25 09:21:35 GMT 2024

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

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

Back to the top