C# Class dotGit.Repository

Afficher le fichier Open project: schacon/dotgit Class Usage Examples

Méthodes publiques

Méthode Description
Init ( string newRepositoryPath ) : Repository

Creates a new repository at given path. If path is an existing repository it does the same as "Open".

Open ( string repositoryPath ) : Repository

Opens a repository from given path

Private Methods

Méthode Description
LoadBranches ( ) : void

Gets called from the Branches property getter for lazy loading

LoadPackedRefs ( ) : void
LoadStorage ( ) : void

Gets called from the Storage property getter for lazy loading

LoadTags ( ) : void

Gets called from the Tags property getter for lazy loading

Repository ( ) : System
Repository ( string path ) : System

Defaults the autoInit parameter of the other overload to false

Repository ( string path, bool autoInit ) : System

Method Details

Init() public static méthode

Creates a new repository at given path. If path is an existing repository it does the same as "Open".
public static Init ( string newRepositoryPath ) : Repository
newRepositoryPath string
Résultat Repository

Open() public static méthode

Opens a repository from given path
public static Open ( string repositoryPath ) : Repository
repositoryPath string
Résultat Repository