mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
refactor: do not run git add
for untracked file while stashing local changes (#903)
This commit is contained in:
parent
d8168c3ba6
commit
cc5f3ebfa5
6 changed files with 56 additions and 108 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SourceGit.Models
|
||||
{
|
||||
|
@ -6,8 +7,10 @@ namespace SourceGit.Models
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue