Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsJGit orphan branch checkout
https://www.eclipse.org/forums/index.php/mv/msg/1108353/1842652/#msg_1842652
I've tried to use CheckoutCommand to create orphan branch, and found that the still has a parent. As I see from the Javadocs and sources, the startCommit have to be defined (or current HEAD is used). This is really different from `git checkout --orphan` which creates branch detached from current history. I tried to set empty start point (.setStartPoint(walk.parseCommit(ObjectId.zeroId()))) but It fails, because zero commit is not resolved.
Could anybody please clarify if it possible to achieve behavior same with git checkout --detach using JGit API?]]>Mike Limansky2021-06-26T23:23:25-00:00