Class GitExtensions
Implements handy local git extension methods.
Namespace: Neon.GitHub
Assembly: Neon.GitHub.dll
Syntax
public static class GitExtensions
Methods
CurrentBranch(Repository)
Returns the current checked-out branch for the local git repository.
Declaration
public static Branch CurrentBranch(this Repository localRepo)
Parameters
Type | Name | Description |
---|---|---|
Repository | localRepo | The local git repository. |
Returns
Type | Description |
---|---|
Branch | The current LibGit2Sharp.Branch. |
IsDirty(Repository)
Returns a local git repository is changes pending a commit.
Declaration
public static bool IsDirty(this Repository localRepo)
Parameters
Type | Name | Description |
---|---|---|
Repository | localRepo | The local git repository. |
Returns
Type | Description |
---|---|
bool |
|
ToIdentity(Signature)
Converts a LibGit2Sharp.Signature into a LibGit2Sharp.Identity.
Declaration
public static Identity ToIdentity(this Signature signature)
Parameters
Type | Name | Description |
---|---|---|
Signature | signature | The signature being converted. |
Returns
Type | Description |
---|---|
Identity | The equivalent identity. |