using System; using System.Diagnostics; using System.Globalization; namespace Octokit { [DebuggerDisplay("{DebuggerDisplay,nq}")] public class Branch { public Branch() { } public Branch(string name, GitReference commit, bool @protected) { Name = name; Commit = commit; Protected = @protected; } /// /// Name of this . /// public string Name { get; protected set; } /// /// Whether this is protected. /// public bool Protected { 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); } } } }