Свойство | Тип | Описание | |
---|---|---|---|
IsReferencePeelable | bool |
Метод | Описание | |
---|---|---|
Discover ( string startingPath ) : string |
Probe for a git repository. The lookup start from startingPath and walk upward parent directories if nothing has been found.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
HasObject ( string sha ) : bool |
Tells if the specified sha exists in the repository. Exceptions: ArgumentException ArgumentNullException
|
|
Init ( string path, bool isBare = false ) : string |
Init a repo at the specified path.
|
|
Lookup ( ObjectId id, GitObjectType type = GitObjectType.Any ) : GitObject |
Try to lookup an object by its ObjectId and GitObjectType. If no matching object is found, null will be returned.
|
|
Lookup ( string shaOrReferenceName, GitObjectType type = GitObjectType.Any ) : GitObject |
Try to lookup an object by its sha or a reference canonical name and GitObjectType. If no matching object is found, null will be returned.
|
|
Repository ( string path ) : System |
Initializes a new instance of the Repository class. For a standard repository, path should point to the ".git" folder. For a bare repository, path should directly point to the repository folder.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
Метод | Описание | |
---|---|---|
IsReferencePeelable ( System.Reference reference ) : bool |
public static Discover ( string startingPath ) : string | ||
startingPath | string | The base path where the lookup starts. |
Результат | string |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public HasObject ( string sha ) : bool | ||
sha | string | The sha. |
Результат | bool |
public static Init ( string path, bool isBare = false ) : string | ||
path | string | The path to the working folder when initializing a standard ".git" repository. Otherwise, when initializing a bare repository, the path to the expected location of this later. |
isBare | bool | true to initialize a bare repository. False otherwise, to initialize a standard ".git" repository. |
Результат | string |
public Lookup ( ObjectId id, GitObjectType type = GitObjectType.Any ) : GitObject | ||
id | ObjectId | The id to lookup. |
type | GitObjectType | The kind of GitObject being looked up |
Результат | GitObject |
public Lookup ( string shaOrReferenceName, GitObjectType type = GitObjectType.Any ) : GitObject | ||
shaOrReferenceName | string | The sha or reference canonical name to lookup. |
type | GitObjectType | The kind of |
Результат | GitObject |
public Repository ( string path ) : System | ||
path | string | The path to the git repository to open. |
Результат | System |