forked from microsoft/VFSForGit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitConfigSetting.cs
More file actions
34 lines (28 loc) · 1.04 KB
/
GitConfigSetting.cs
File metadata and controls
34 lines (28 loc) · 1.04 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
34
using System.Collections.Generic;
namespace GVFS.Common.Git
{
public class GitConfigSetting
{
public const string CoreVirtualizeObjectsName = "core.virtualizeobjects";
public const string CoreVirtualFileSystemName = "core.virtualfilesystem";
public const string CredentialUseHttpPath = "credential.useHttpPath";
public const string HttpSslCert = "http.sslcert";
public const string HttpSslVerify = "http.sslverify";
public const string HttpSslCertPasswordProtected = "http.sslcertpasswordprotected";
public GitConfigSetting(string name, params string[] values)
{
this.Name = name;
this.Values = new HashSet<string>(values);
}
public string Name { get; }
public HashSet<string> Values { get; }
public bool HasValue(string value)
{
return this.Values.Contains(value);
}
public void Add(string value)
{
this.Values.Add(value);
}
}
}