2024-07-23 20:44:13 -07:00
|
|
|
|
using Avalonia.Media;
|
|
|
|
|
|
|
|
|
|
namespace SourceGit.Models
|
|
|
|
|
{
|
|
|
|
|
public class ResetMode
|
|
|
|
|
{
|
2024-07-23 20:45:16 -07:00
|
|
|
|
public static readonly ResetMode[] Supported =
|
2024-07-23 20:44:13 -07:00
|
|
|
|
[
|
|
|
|
|
new ResetMode("Soft", "Keep all changes. Stage differences", "--soft", Brushes.Green),
|
|
|
|
|
new ResetMode("Mixed", "Keep all changes. Unstage differences", "--mixed", Brushes.Orange),
|
|
|
|
|
new ResetMode("Hard", "Discard all changes", "--hard", Brushes.Red),
|
2024-09-25 20:29:32 -07:00
|
|
|
|
new ResetMode("Merge", "Reset to a commit, keeping unmerged changes", "--merge", Brushes.Green),
|
|
|
|
|
new ResetMode("Keep", "Reset while keeping local modifications", "--keep", Brushes.Green),
|
2024-07-23 20:44:13 -07:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Desc { get; set; }
|
|
|
|
|
public string Arg { get; set; }
|
|
|
|
|
public IBrush Color { get; set; }
|
|
|
|
|
|
|
|
|
|
public ResetMode(string n, string d, string a, IBrush b)
|
|
|
|
|
{
|
|
|
|
|
Name = n;
|
|
|
|
|
Desc = d;
|
|
|
|
|
Arg = a;
|
|
|
|
|
Color = b;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|