AsCommit() public method

Parse this commit buffer for display.
public AsCommit ( RevWalk walk ) : Commit
walk RevWalk /// revision walker owning this reference. ///
return Commit
Example #1
0
 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
         };
     });
 }