VcsInfo
Namespace: E2E.Reports
public sealed record VcsInfo : IEquatable<VcsInfo>Where the code under test came from (upstream’s VcsInfo, internal/vcs.ts).
Inheritance: object
Implements: IEquatable<VcsInfo>
Constructors
Section titled “Constructors”VcsInfo(string, string?, bool?)
Section titled “VcsInfo(string, string?, bool?)”public VcsInfo(string Commit, string? Branch = null, bool? Dirty = null)Where the code under test came from (upstream’s VcsInfo, internal/vcs.ts).
Parameters
| Name | Type | Description |
|---|---|---|
Commit |
string | The commit the working tree is checked out at. |
Branch |
string | The branch name; null on a detached HEAD or when only the commit is known. |
Dirty |
bool? | True when tracked files differ from the commit; null when git could not say. |
Properties
Section titled “Properties”Branch
Section titled “Branch”public string? Branch { get; init; }The branch name; null on a detached HEAD or when only the commit is known.
Value: string
Commit
Section titled “Commit”public string Commit { get; init; }The commit the working tree is checked out at.
Value: string
public bool? Dirty { get; init; }True when tracked files differ from the commit; null when git could not say.
Value: bool?