using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Branch { public Branch() { } public Branch(string name, GitReference commit, BranchProtection protection) { Name = name; Commit = commit; Protection = protection; } /// /// Name of this . /// public string Name { get; protected set; } /// /// The details for this . /// Note: this is a PREVIEW api: https://developer.github.com/changes/2015-11-11-protected-branches-api/ /// public BranchProtection Protection { get; protected set; } /// /// The history for this . /// public GitReference Commit { get; protected set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0}", Name); } } } }