docs: private static Optional<AbbreviatedObjectId> createAbbreviatedCommitId(@Nonnull ObjectReader objectReader, ObjectId commitId, int requestedLength) {
      if (requestedLength < 2) {
        // 0 means we don't want to print commit id's at all
        return Optional.empty();
      }
  
      try {
        AbbreviatedObjectId abbreviatedObjectId = objectReader.abbreviate(commitId, requestedLength);
        return Optional.of(abbreviatedObjectId);
      } catch (IOException e) {
        return Optional.empty();
      }
    }