protected override void LoadBody(GitObjectStream content) { var body = content.ReadToEnd().ToAsciiString(); var lines = body.Split('\n'); foreach (var line in lines) { if (line.StartsWith("tree")) TreeId = GetTreeId(line); if (line.StartsWith("author")) Author = GetSignature(line); if (line.StartsWith("committer")) Committer = GetSignature(line); } Comment = ReadComment(body); }
protected override void LoadBody(GitObjectStream content) { Content = content.ReadToEnd().ToAsciiString(); }