Skip to main content



      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 04:05 Go to next message
Eclipse UserFriend
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 11:08 Go to previous messageGo to next message
Eclipse UserFriend
You could check out master branch, right-click on F and say "Cherry Pick" and right-click on G and say "Cherry Pick".
Re: Cherry pick a range of commit [message #1060052 is a reply to message #1060033] Wed, 22 May 2013 13:10 Go to previous messageGo to next message
Eclipse UserFriend
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 00:27 Go to previous messageGo to next message
Eclipse UserFriend
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 09:13 Go to previous messageGo to next message
Eclipse UserFriend
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 03:06 Go to previous message
Eclipse UserFriend
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: Sat May 24 07:16:00 EDT 2025

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

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

Back to the top