Exemple #1
0
        public static RevisionInfo ConvertToRevisionInfo(this RevCommit commit, Repository repository)
        {
            var authorIdent = commit.GetAuthorIdent();

            return(new RevisionInfo
            {
                Author = authorIdent.GetName(),
                Comment = commit.GetComment(),
                Id = commit.Id.Name,
                Time = commit.GetCommitTime(),
                Entries = commit.GetEntriesEnc(repository),
                Email = authorIdent.GetEmailAddress(),
                TimeCreated = commit.GetAuthorTime()
            });
        }