Example #1
0
 @Override
 public void reset(ResetRequest request) throws GitException {
   nativeGit
       .createResetCommand()
       .setMode(request.getType().getValue())
       .setCommit(request.getCommit())
       .setFilePattern(request.getFilePattern())
       .execute();
 }
 @Override
 public void reset(ResetRequest request) throws GitException {
   ensureExistenceRepoRootInWorkingDirectory();
   nativeGit
       .createResetCommand()
       .setMode(request.getType().getValue())
       .setCommit(request.getCommit())
       .setFilePattern(request.getFilePattern())
       .execute();
 }