-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Merge.cs
34 lines (30 loc) · 1.16 KB
/
Merge.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Linq;
namespace Octokit
{
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class Merge : GitReference
{
public Merge() { }
public Merge(Author author, Author committer, Commit commit, IEnumerable<GitReference> parents, string commentsUrl, int commentCount, string htmlUrl)
{
Ensure.ArgumentNotNull(parents, "parents");
Author = author;
Committer = committer;
Commit = commit;
Parents = new ReadOnlyCollection<GitReference>(parents.ToList());
CommentsUrl = commentsUrl;
CommentCount = commentCount;
HtmlUrl = htmlUrl;
}
public Author Author { get; protected set; }
public Author Committer { get; protected set; }
public Commit Commit { get; protected set; }
public IReadOnlyList<GitReference> Parents { get; protected set; }
public string CommentsUrl { get; protected set; }
public int CommentCount { get; protected set; }
public string HtmlUrl { get; protected set; }
}
}