sourcegit/src/Models/MergeOption.cs
2021-04-29 20:05:55 +08:00

25 lines
828 B
C#

using System.Collections.Generic;
namespace SourceGit.Models {
/// <summary>
/// 合并方式
/// </summary>
public class MergeOption {
public string Name { get; set; }
public string Desc { get; set; }
public string Arg { get; set; }
public static List<MergeOption> Supported = new List<MergeOption>() {
new MergeOption("Default", "Fast-forward if possible", ""),
new MergeOption("No Fast-forward", "Always create a merge commit", "--no-ff"),
new MergeOption("Squash", "Use '--squash'", "--squash"),
new MergeOption("Don't commit", "Merge without commit", "--no-commit"),
};
public MergeOption(string n, string d, string a) {
Name = n;
Desc = d;
Arg = a;
}
}
}