private Commit CreateCommit(LibGit2Sharp.Commit commit)
{
return new Commit
{
Id = commit.Sha,
ParentIds = commit.Parents.Select(parent => parent.Sha).ToList(),
AuthorDateRelative = commit.Author.When.ToString(),
AuthorName = commit.Author.Name,
AuthorEmail = commit.Author.Email,
AuthorDate = commit.Author.When.DateTime,
Subject = commit.MessageShort,
Message = commit.Message
};
}