mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
|
|
namespace Octokit
|
|
{
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
public class Commit : GitReference
|
|
{
|
|
public Commit() { }
|
|
|
|
public Commit(string url, string label, string @ref, string sha, User user, Repository repository, string message, Committer author, Committer committer, GitReference tree, IEnumerable<GitReference> parents, int commentCount)
|
|
: base(url, label, @ref, sha, user, repository)
|
|
{
|
|
Ensure.ArgumentNotNull(parents, "parents");
|
|
|
|
Message = message;
|
|
Author = author;
|
|
Committer = committer;
|
|
Tree = tree;
|
|
Parents = new ReadOnlyCollection<GitReference>(parents.ToList());
|
|
CommentCount = commentCount;
|
|
}
|
|
|
|
public string Message { get; protected set; }
|
|
|
|
public Committer Author { get; protected set; }
|
|
|
|
public Committer Committer { get; protected set; }
|
|
|
|
public GitReference Tree { get; protected set; }
|
|
|
|
public IReadOnlyList<GitReference> Parents { get; protected set; }
|
|
|
|
public int CommentCount { get; protected set; }
|
|
|
|
public Verification Verification { get; protected set; }
|
|
}
|
|
}
|