private CommitWrapper GetCommit(RevCommit currentRev) { return(Map.GetOrAdd(currentRev, (s) => { var commit = currentRev.AsCommit(_walker); return new CommitWrapper { Commit = commit, Detail = ConvertToCommitDetail(commit), TreeEntry = commit.TreeEntry, ParentCount = commit.ParentIds.Length }; })); }