Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Few questions about "cherry-pick" feature(1) Is EGit support cherry-pick "-x" option? 2) Is 3.7.1 don't cherry-picking multiple commits?)
icon5.gif  Few questions about "cherry-pick" feature [message #1697124] Mon, 01 June 2015 14:03 Go to next message
Eclipse UserFriend
Nice to see everybody.

I met few problems when I use EGit to handle my project.
1) After a commit be cherry-pick, EGit cannot append the line "(cherry picked from commit ...)" to indicate which commit this change was cherry-picked from.
It should be support by git, with the following command
git cherry-pick -x
Is any possible to support this feature??

2) I saw the EGit 3.5 release note, it say the cherry-picking multiple commits is be supported. But actually, I cannot find this feature in EGit 3.7.1 (&3.7).
Am I miss something? Or this feature is only supported in 3.5??
https://wiki.eclipse.org/EGit/New_and_Noteworthy/3.5

Thanks.
Re: Few questions about "cherry-pick" feature [message #1697139 is a reply to message #1697124] Mon, 01 June 2015 17:12 Go to previous messageGo to next message
Eclipse UserFriend
1) JGit's CherryPickCommand doesn't yet support the option -x, feel free to file an enhancement bug.
Contributions welcome Wink

2) the 3.5 implementation for cherry-picking multiple commits was using rebase mechanics to implement this.
It turned out that this implementation has some serious problems and we didn't find a good
way to fix these problems while ensuring compatibility with native git. Hence this feature was removed
later.
Re: Few questions about "cherry-pick" feature [message #1697155 is a reply to message #1697139] Mon, 01 June 2015 23:41 Go to previous messageGo to next message
Eclipse UserFriend
Wow, thanks for your reply. I got it.

I really need the option -x, because that let me easy to trace my code changed.
And I don't understand what are you mean (sorry, my English is not very well) about "feel free to file an enhancement bug", is want me to submit a bug?

Anyway, thanks for your reply and EGit. ^.^
Re: Few questions about "cherry-pick" feature [message #1697966 is a reply to message #1697155] Tue, 09 June 2015 18:28 Go to previous messageGo to next message
Eclipse UserFriend
if you want you can submit a bug with severity "enhancement" to track that you want JGit to be enhanced to support cherry-pick -x
Re: Few questions about "cherry-pick" feature [message #1864763 is a reply to message #1697124] Mon, 08 April 2024 05:51 Go to previous message
Eclipse UserFriend
The analogue of git cherry-pick -x is supported since JGit 6.9.0.202403050737-r

import org.eclipse.jgit.api.CherryPickCommitMessageProvider;
Git git = ...;
git.cherryPick().setCherryPickCommitMessageProvider(CherryPickCommitMessageProvider.ORIGINAL_WITH_REFERENCE);

Previous Topic:Egit seems to be losing its mind
Next Topic:API docs link broken?
Goto Forum:
  


Current Time: Tue May 20 09:10:44 EDT 2025

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

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

Back to the top