Class ThisAssembly.Git
Returns information about the current git repo for the solution.
Namespace: Neon.BuildInfo
Assembly: Neon.BuildInfo.dll
Syntax
public static class ThisAssembly.Git
Fields
BaseTag
Returns the base tag.
Declaration
public const string BaseTag = "v4.0.4"
Field Value
Type | Description |
---|---|
string |
Branch
Returns the name of the current branch.
Declaration
public const string Branch = "master"
Field Value
Type | Description |
---|---|
string |
Commit
Returns the current commit hash (short).
Declaration
public const string Commit = "3db742e3"
Field Value
Type | Description |
---|---|
string |
CommitDate
Returns the commit timestamp.
Declaration
public const string CommitDate = "2024-03-07T11:09:39-08:00"
Field Value
Type | Description |
---|---|
string |
Commits
Returns the commits on top of the base version.
Declaration
public const string Commits = "6"
Field Value
Type | Description |
---|---|
string |
IsDirty
Returns true
when the git repo has uncommited changes.
Declaration
public const bool IsDirty = false
Field Value
Type | Description |
---|---|
bool |
IsDirtyString
Returns "true when the git repo has uncommited changes, "false" otherwise.
Declaration
public const string IsDirtyString = "false"
Field Value
Type | Description |
---|---|
string |
RepositoryUrl
Returns the upstream git repository URL.
Declaration
public const string RepositoryUrl = "https://github.com/nforgeio/neonSDK.git"
Field Value
Type | Description |
---|---|
string |
Sha
Returns the current commit SHA.
Declaration
public const string Sha = "3db742e3d393d1e5e85ab5f3b19c7dcf9ba7a1de"
Field Value
Type | Description |
---|---|
string |
Tag
Returns the full tag.
Declaration
public const string Tag = "v4.0.4-6-g3db742e3"
Field Value
Type | Description |
---|---|
string |