Summary
Represents a single Git commit.
- Namespace
-
GitVersion
.Git - Interfaces
graph BT Type-.->Interface0["IEquatable<ICommit>"]
Type-.->Interface1["IComparable<ICommit>"]
Type["ICommit"] class Type type-node
Syntax
public interface ICommit : IEquatable<ICommit>, IComparable<ICommit>
Properties
| Name | Value | Summary |
|---|---|---|
| DiffPaths | IReadOnlyList |
Gets the paths of files changed in this commit relative
to its first parent.
|
| Id | IObjectId |
Gets the object identifier (SHA) of this commit.
|
| IsMergeCommit | bool |
Gets a value indicating whether this is a merge commit
(has more than one parent).
|
| Message | string |
Gets the full commit message.
|
| Parents |
IReadOnlyList |
Gets the direct parent commits of this commit.
|
| Sha | string |
Gets the full SHA-1 hash string of this commit.
|
| When | DateTimeOffset |
Gets the author date of this commit.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
|
NotNull |
T |
Throws
ArgumentNullException when
value is
null; otherwise returns the
value.
From
CommonExtensions
|