// |
// o - master - Points 2 added
// switch back to master
geogig.command(CheckoutOp.class).setSource("master").call();
CherryPickOp cherryPick = geogig.command(CherryPickOp.class);
cherryPick.setCommit(Suppliers.ofInstance(c5.getId()));
RevCommit commit2 = cherryPick.call();
assertEquals(c5.getAuthor(), commit2.getAuthor());
assertEquals(c5.getCommitter().getName(), commit2.getCommitter().getName());
assertEquals(c5.getMessage(), commit2.getMessage());
assertFalse(c5.getCommitter().getTimestamp() == commit2.getCommitter().getTimestamp());
assertFalse(c5.getTreeId().equals(commit2.getTreeId()));
cherryPick.setCommit(Suppliers.ofInstance(c3.getId()));
RevCommit commit3 = cherryPick.call();
assertEquals(c3.getAuthor(), commit3.getAuthor());
assertEquals(c3.getCommitter().getName(), commit3.getCommitter().getName());
assertEquals(c3.getMessage(), commit3.getMessage());
assertFalse(c3.getCommitter().getTimestamp() == commit3.getCommitter().getTimestamp());
assertFalse(c3.getTreeId().equals(commit3.getTreeId()));
cherryPick.setCommit(Suppliers.ofInstance(c2.getId()));
RevCommit commit4 = cherryPick.call();
assertEquals(c2.getAuthor(), commit4.getAuthor());
assertEquals(c2.getCommitter().getName(), commit4.getCommitter().getName());
assertEquals(c2.getCommitter().getEmail(), commit4.getCommitter().getEmail());
assertEquals(c2.getMessage(), commit4.getMessage());