C# Class Microsoft.Alm.Git.Where

Afficher le fichier Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GitLocalConfig ( string startingDirectory, string &path ) : bool

Method Details

FindApp() public static méthode

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.
Résultat bool

FindGitInstallation() public static méthode

public static FindGitInstallation ( string path, KnownGitDistribution distro, GitInstallation &installation ) : bool
path string
distro KnownGitDistribution
installation GitInstallation
Résultat bool

FindGitInstallations() public static méthode

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

GitGlobalConfig() public static méthode

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

GitLocalConfig() public static méthode

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.
Résultat bool

GitPortableConfig() public static méthode

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
Résultat bool

GitSystemConfig() public static méthode

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.
Résultat bool