sourcegit/src/Models/Branch.cs

18 lines
544 B
C#
Raw Normal View History

namespace SourceGit.Models
{
public class Branch
{
2021-04-29 05:05:55 -07:00
public string Name { get; set; }
public string FullName { get; set; }
public string Head { get; set; }
public bool IsLocal { get; set; }
public bool IsCurrent { get; set; }
public string Upstream { get; set; }
public string UpstreamTrackStatus { get; set; }
public string Remote { get; set; }
public bool IsHead { get; set; }
public string FriendlyName => IsLocal ? Name : $"{Remote}/{Name}";
2021-04-29 05:05:55 -07:00
}
}