2021-04-29 05:05:55 -07:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
|
|
|
namespace SourceGit.Models {
|
|
|
|
/// <summary>
|
|
|
|
/// 重置方式
|
|
|
|
/// </summary>
|
|
|
|
public class ResetMode {
|
|
|
|
public string Name { get; set; }
|
|
|
|
public string Desc { get; set; }
|
|
|
|
public string Arg { get; set; }
|
|
|
|
public Brush Color { get; set; }
|
|
|
|
|
|
|
|
public static List<ResetMode> Supported = new List<ResetMode>() {
|
|
|
|
new ResetMode("Soft", "Keep all changes. Stage differences", "--soft", Brushes.Green),
|
2021-08-05 20:56:50 -07:00
|
|
|
new ResetMode("Mixed", "Keep all changes. Unstage differences", "--mixed", Brushes.Orange),
|
2021-04-29 05:05:55 -07:00
|
|
|
new ResetMode("Hard", "Discard all changes", "--hard", Brushes.Red),
|
|
|
|
};
|
|
|
|
|
|
|
|
public ResetMode(string n, string d, string a, Brush b) {
|
|
|
|
Name = n;
|
|
|
|
Desc = d;
|
|
|
|
Arg = a;
|
|
|
|
Color = b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|