using System.Collections.Generic; using System.Windows; namespace SourceGit.Models { /// /// 提交记录 /// public class Commit { public string SHA { get; set; } = ""; public string ShortSHA => SHA.Substring(0, 8); public User Author { get; set; } = new User(); public User Committer { get; set; } = new User(); public string Subject { get; set; } = ""; public string Message { get; set; } = ""; public List Parents { get; set; } = new List(); public List Decorators { get; set; } = new List(); public bool HasDecorators => Decorators.Count > 0; public bool IsMerged { get; set; } = false; public Thickness Margin { get; set; } = new Thickness(0); } }