2024-07-01 01:27:22 -07:00
|
|
|
|
namespace SourceGit.Models
|
2024-03-17 18:37:06 -07:00
|
|
|
|
{
|
|
|
|
|
public enum DecoratorType
|
|
|
|
|
{
|
2020-07-03 00:24:31 -07:00
|
|
|
|
None,
|
|
|
|
|
CurrentBranchHead,
|
|
|
|
|
LocalBranchHead,
|
2024-05-25 11:05:32 -07:00
|
|
|
|
CurrentCommitHead,
|
2020-07-03 00:24:31 -07:00
|
|
|
|
RemoteBranchHead,
|
|
|
|
|
Tag,
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public class Decorator
|
|
|
|
|
{
|
2021-04-29 05:05:55 -07:00
|
|
|
|
public DecoratorType Type { get; set; } = DecoratorType.None;
|
|
|
|
|
public string Name { get; set; } = "";
|
2024-08-23 01:52:55 -07:00
|
|
|
|
public bool IsTag => Type == DecoratorType.Tag;
|
2020-07-03 00:24:31 -07:00
|
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
|
}
|