Isn't there a way to extract and share the logic from `CommitLog.CommitEnumerator.RetrieveCommitOids()`?