Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/GitHub.Api/Git/GitBranch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,23 @@ interface ITreeData
[Serializable]
public struct GitBranch : ITreeData
{
private string name;
private string tracking;
private bool active;
public static GitBranch Default = new GitBranch();

public string name;
public string tracking;
public bool isActive;

public string Name { get { return name; } }
public string Tracking { get { return tracking; } }
public bool IsActive { get { return active; } }
public bool IsActive { get { return isActive; } }

public GitBranch(string name, string tracking, bool active)
{
Guard.ArgumentNotNullOrWhiteSpace(name, "name");

this.name = name;
this.tracking = tracking;
this.active = active;
this.isActive = active;
}

public override string ToString()
Expand Down