mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
17 lines
545 B
C#
17 lines
545 B
C#
using System;
|
|
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 bool HasUntracked => Parents.Count == 3;
|
|
|
|
public string TimeStr => DateTime.UnixEpoch.AddSeconds(Time).ToLocalTime().ToString(DateTimeFormat.Actived.DateTime);
|
|
}
|
|
}
|