示例#1
0
        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);
        }
示例#2
0
 protected override void LoadBody(GitObjectStream content)
 {
     Content = content.ReadToEnd().ToAsciiString();
 }