C# Class Microsoft.Alm.Git.Where

Show file Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Public Methods

Method Description
FindApp ( string name, string &path ) : bool

Finds the "best" path to an app of a given name.

FindGitInstallation ( string path, KnownGitDistribution distro, GitInstallation &installation ) : bool
FindGitInstallations ( List &installations ) : bool

Finds and returns paths to Git installations in common locations.

GitGlobalConfig ( string &path ) : bool

Gets the path to the Git global configuration file.

GitLocalConfig ( string &path ) : bool

Gets the path to the Git local configuration file based on the current working directory.

GitPortableConfig ( string &path ) : bool

Gets the path to the Git portable system configuration file.

GitSystemConfig ( GitInstallation installation, string &path ) : bool

Gets the path to the Git system configuration file.

Private Methods

Method Description
GitLocalConfig ( string startingDirectory, string &path ) : bool

Method Details

FindApp() public static method

Finds the "best" path to an app of a given name.
public static FindApp ( string name, string &path ) : bool
name string The name of the application, without extension, to find.
path string Path to the first match file which the operating system considers /// executable.
return bool

FindGitInstallation() public static method

public static FindGitInstallation ( string path, KnownGitDistribution distro, GitInstallation &installation ) : bool
path string
distro KnownGitDistribution
installation GitInstallation
return bool

FindGitInstallations() public static method

Finds and returns paths to Git installations in common locations.
public static FindGitInstallations ( List &installations ) : bool
installations List
return bool

GitGlobalConfig() public static method

Gets the path to the Git global configuration file.
public static GitGlobalConfig ( string &path ) : bool
path string Path to the Git global configuration
return bool

GitLocalConfig() public static method

Gets the path to the Git local configuration file based on the current working directory.
public static GitLocalConfig ( string &path ) : bool
path string Path to the Git local configuration.
return bool

GitPortableConfig() public static method

Gets the path to the Git portable system configuration file.
public static GitPortableConfig ( string &path ) : bool
path string Path to the Git portable system configuration
return bool

GitSystemConfig() public static method

Gets the path to the Git system configuration file.
public static GitSystemConfig ( GitInstallation installation, string &path ) : bool
installation GitInstallation
path string Path to the Git system configuration.
return bool