mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 19:02:39 +08:00
22 lines
591 B
C#
22 lines
591 B
C#
namespace SourceGit.Models
|
|
{
|
|
public enum SubmoduleStatus
|
|
{
|
|
Normal = 0,
|
|
NotInited,
|
|
RevisionChanged,
|
|
Unmerged,
|
|
Modified,
|
|
}
|
|
|
|
public class Submodule
|
|
{
|
|
public string Path { get; set; } = string.Empty;
|
|
public string SHA { get; set; } = string.Empty;
|
|
public string URL { get; set; } = string.Empty;
|
|
public string Branch { get; set; } = string.Empty;
|
|
public SubmoduleStatus Status { get; set; } = SubmoduleStatus.Normal;
|
|
public bool IsDirty => Status > SubmoduleStatus.NotInited;
|
|
}
|
|
}
|