-
Notifications
You must be signed in to change notification settings - Fork 385
Expand file tree
/
Copy pathMergeMode.cs
More file actions
33 lines (27 loc) · 1.1 KB
/
MergeMode.cs
File metadata and controls
33 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace SourceGit.Models
{
public class MergeMode(string n, string d, string a)
{
public static readonly MergeMode Default =
new MergeMode("Default", "Use git configuration", "");
public static readonly MergeMode FastForward =
new MergeMode("Fast-forward", "Refuse to merge when fast-forward is not possible", "--ff-only");
public static readonly MergeMode NoFastForward =
new MergeMode("No Fast-forward", "Always create a merge commit", "--no-ff");
public static readonly MergeMode Squash =
new MergeMode("Squash", "Squash merge", "--squash");
public static readonly MergeMode DontCommit
= new MergeMode("Don't commit", "Merge without commit", "--no-ff --no-commit");
public static readonly MergeMode[] Supported =
[
Default,
FastForward,
NoFastForward,
Squash,
DontCommit,
];
public string Name { get; set; } = n;
public string Desc { get; set; } = d;
public string Arg { get; set; } = a;
}
}