Table of Contents

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

List<GitConfigSectionData>

NonExists

List of configuration sections that don't exist in the Git config file

public List<GitConfigSectionData> NonExists { get; set; }

Property Value

List<GitConfigSectionData>

UnknownHeaders

List of header lines that couldn't be parsed

public List<string> UnknownHeaders { get; set; }

Property Value

List<string>

Methods

GetValue(GitConfigSection, string)

Gets the value for a specific key in a configuration section

public string? GetValue(GitConfigSection blockSection, string key)

Parameters

blockSection GitConfigSection

The Git configuration section to search in

key string

The 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

blockSection GitConfigSection

The Git configuration section to modify

key string

The configuration key to set

value string

The value to assign to the key