Exemplo n.º 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();
 }
Exemplo n.º 2
0
 @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();
 }