GitScc.GitRepository.CreateCommit C# (CSharp) Method

CreateCommit() private method

private CreateCommit ( LibGit2Sharp commit ) : GitScc.DataServices.Commit
commit LibGit2Sharp
return GitScc.DataServices.Commit
        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
            };
        }