@Override
 public void checkout(CheckoutRequest request) throws GitException {
   ensureExistenceRepoRootInWorkingDirectory();
   nativeGit
       .createCheckoutCommand()
       .setBranchName(request.getName())
       .setStartPoint(request.getStartPoint())
       .setCreateNew(request.isCreateNew())
       .setTrackBranch(request.getTrackBranch())
       .setFilePaths(request.getFiles())
       .execute();
 }
Example #2
0
 @Override
 public void checkout(CheckoutRequest request) throws GitException {
   nativeGit
       .createCheckoutCommand()
       .setBranchName(request.getName())
       .setStartPoint(request.getStartPoint())
       .setCreateNew(request.isCreateNew())
       .setTrackBranch(request.getTrackBranch())
       .setFilePaths(request.getFiles())
       .setNoTrack(request.isNoTrack())
       .execute();
 }