mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
16 lines
482 B
C#
16 lines
482 B
C#
using System.Collections.Generic;
|
|
|
|
namespace SourceGit.Models
|
|
{
|
|
public class Stash
|
|
{
|
|
public string Name { get; set; } = "";
|
|
public string SHA { get; set; } = "";
|
|
public List<string> Parents { get; set; } = [];
|
|
public ulong Time { get; set; } = 0;
|
|
public string Message { get; set; } = "";
|
|
public string Subject => Message.Split('\n', 2)[0].Trim();
|
|
public string UntrackedParent => EmptyTreeHash.Guess(SHA);
|
|
}
|
|
}
|