Class ExistsNonExistsListGitConfig
- Namespace
- SunamoGitConfig.Data
- Assembly
- SunamoGitConfig.dll
Represents parsed Git configuration with sections that exist and don't exist in the config file
public class ExistsNonExistsListGitConfig
- Inheritance
-
ExistsNonExistsListGitConfig
- Inherited Members
- Extension Methods
Properties
Exists
List of configuration sections that exist in the Git config file
public List<GitConfigSectionData> Exists { get; set; }
Property Value
NonExists
List of configuration sections that don't exist in the Git config file
public List<GitConfigSectionData> NonExists { get; set; }
Property Value
UnknownHeaders
List of header lines that couldn't be parsed
public List<string> UnknownHeaders { get; set; }
Property Value
Methods
GetValue(GitConfigSection, string)
Gets the value for a specific key in a configuration section
public string? GetValue(GitConfigSection blockSection, string key)
Parameters
blockSectionGitConfigSectionThe Git configuration section to search in
keystringThe configuration key to find
Returns
- string
The value if found, null otherwise
SetValue(GitConfigSection, string, string)
Sets the value for a specific key in a configuration section
public void SetValue(GitConfigSection blockSection, string key, string value)
Parameters
blockSectionGitConfigSectionThe Git configuration section to modify
keystringThe configuration key to set
valuestringThe value to assign to the key