code: public SemanticVersion getNextVersion() {
      int major = head.getMajorVersion();
      int minor = head.getMinorVersion();
      int patch = head.getPatchVersion();
      return new SemanticVersion(major, minor, patch + 1);
    }
docs: Get the next logical version in line. For example:
  
  1.2.3 becomes 1.2.4