@Override
  public String next() {
    if (repositoryCommits.isEmpty() || currentPosition >= repositoryCommits.size()) throw new NoSuchElementException();
    String result = repositoryCommits.get(currentPosition);
    currentPosition++;
    return result;
  }
@Override
  public String next()