Beispiel #1
0
 @Override
 public void add(AddRequest request) throws GitException {
   AddCommand command = nativeGit.createAddCommand();
   command.setFilePattern(
       request.getFilepattern() == null ? AddRequest.DEFAULT_PATTERN : request.getFilepattern());
   command.setUpdate(request.isUpdate());
   command.execute();
 }
 @Override
 public void add(AddRequest request) throws GitException {
   ensureExistenceRepoRootInWorkingDirectory();
   AddCommand command = nativeGit.createAddCommand();
   command.setFilePattern(
       request.getFilepattern() == null ? AddRequest.DEFAULT_PATTERN : request.getFilepattern());
   command.setUpdate(request.isUpdate());
   command.execute();
 }