mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-17 00:14:59 +00:00

- Do not translate commandline options for `git` - Re-design combox layout for `git apply` popup Signed-off-by: leo <longshuang@msn.cn>
24 lines
857 B
C#
24 lines
857 B
C#
namespace SourceGit.Models
|
|
{
|
|
public class ApplyWhiteSpaceMode
|
|
{
|
|
public static readonly ApplyWhiteSpaceMode[] Supported =
|
|
[
|
|
new ApplyWhiteSpaceMode("No Warn", "Turns off the trailing whitespace warning", "nowarn"),
|
|
new ApplyWhiteSpaceMode("Warn", "Outputs warnings for a few such errors, but applies", "warn"),
|
|
new ApplyWhiteSpaceMode("Error", "Raise errors and refuses to apply the patch", "error"),
|
|
new ApplyWhiteSpaceMode("Error All", "Similar to 'error', but shows more", "error-all"),
|
|
];
|
|
|
|
public string Name { get; set; }
|
|
public string Desc { get; set; }
|
|
public string Arg { get; set; }
|
|
|
|
public ApplyWhiteSpaceMode(string n, string d, string a)
|
|
{
|
|
Name = n;
|
|
Desc = d;
|
|
Arg = a;
|
|
}
|
|
}
|
|
}
|