mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
9e048751ae
* ViewModels.MergeMode -> Models.MergeMode * ViewModels.Notification -> Models.Notification * ViewModels.ResetMode -> Models.ResetMode * use `int` instead of `ViewModels.CountSelectedCommits`
24 lines
721 B
C#
24 lines
721 B
C#
namespace SourceGit.Models
|
|
{
|
|
public class MergeMode
|
|
{
|
|
public static readonly MergeMode[] Supported =
|
|
[
|
|
new MergeMode("Default", "Fast-forward if possible", ""),
|
|
new MergeMode("No Fast-forward", "Always create a merge commit", "--no-ff"),
|
|
new MergeMode("Squash", "Use '--squash'", "--squash"),
|
|
new MergeMode("Don't commit", "Merge without commit", "--no-commit"),
|
|
];
|
|
|
|
public string Name { get; set; }
|
|
public string Desc { get; set; }
|
|
public string Arg { get; set; }
|
|
|
|
public MergeMode(string n, string d, string a)
|
|
{
|
|
Name = n;
|
|
Desc = d;
|
|
Arg = a;
|
|
}
|
|
}
|
|
}
|