예제 #1
0
 @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();
 }
예제 #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();
 }