@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(); }
@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(); }