C# Класс Microsoft.Alm.Git.Where

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GitLocalConfig ( string startingDirectory, string &path ) : bool

Описание методов

FindApp() публичный статический Метод

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.
Результат bool

FindGitInstallation() публичный статический Метод

public static FindGitInstallation ( string path, KnownGitDistribution distro, GitInstallation &installation ) : bool
path string
distro KnownGitDistribution
installation GitInstallation
Результат bool

FindGitInstallations() публичный статический Метод

Finds and returns paths to Git installations in common locations.
public static FindGitInstallations ( List &installations ) : bool
installations List
Результат bool

GitGlobalConfig() публичный статический Метод

Gets the path to the Git global configuration file.
public static GitGlobalConfig ( string &path ) : bool
path string Path to the Git global configuration
Результат bool

GitLocalConfig() публичный статический Метод

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.
Результат bool

GitPortableConfig() публичный статический Метод

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
Результат bool

GitSystemConfig() публичный статический Метод

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.
Результат bool