2024-02-05 23:08:37 -08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
namespace SourceGit.Models
|
|
|
|
|
{
|
|
|
|
|
public class CRLFMode
|
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
public string Desc { get; set; }
|
|
|
|
|
|
2024-03-31 01:54:29 -07:00
|
|
|
|
public static readonly List<CRLFMode> Supported = new List<CRLFMode>() {
|
2024-02-05 23:08:37 -08:00
|
|
|
|
new CRLFMode("TRUE", "true", "Commit as LF, checkout as CRLF"),
|
|
|
|
|
new CRLFMode("INPUT", "input", "Only convert for commit"),
|
|
|
|
|
new CRLFMode("FALSE", "false", "Do NOT convert"),
|
|
|
|
|
};
|
|
|
|
|
|
2024-03-17 18:37:06 -07:00
|
|
|
|
public CRLFMode(string name, string value, string desc)
|
|
|
|
|
{
|
2024-02-05 23:08:37 -08:00
|
|
|
|
Name = name;
|
|
|
|
|
Value = value;
|
|
|
|
|
Desc = desc;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-03-31 01:54:29 -07:00
|
|
|
|
}
|