mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-28 08:58:37 +00:00
43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
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;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Name of this <see cref="Branch"/>.
|
|
/// </summary>
|
|
public string Name { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// Whether this <see cref="Branch"/> is protected.
|
|
/// </summary>
|
|
public bool Protected { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The <see cref="GitReference"/> history for this <see cref="Branch"/>.
|
|
/// </summary>
|
|
public GitReference Commit { get; protected set; }
|
|
|
|
internal string DebuggerDisplay
|
|
{
|
|
get
|
|
{
|
|
return string.Format(CultureInfo.InvariantCulture, "Name: {0}", Name);
|
|
}
|
|
}
|
|
}
|
|
}
|