GitSharp.Commit.LoadBody C# (CSharp) Method

LoadBody() protected method

protected LoadBody ( GitObjectStream content ) : void
content GitObjectStream
return void
        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);
        }