Summary
Represents a single Git commit.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
.Git - Interfaces
-
- IEquatable
<ICommit> - IComparable
<ICommit> - ICommitish
- IEquatable
graph BT
Type-.->Interface0["IEquatable<ICommit>"]
Type-.->Interface1["IComparable<ICommit>"]
Type-.->Interface2["ICommitish"]
click Interface2 "/api/GitVersion.Git/ICommitish"
Type["ICommit"]
class Type type-node
Syntax
public interface ICommit : IEquatable<ICommit>, IComparable<ICommit>, ICommitish
Attributes
| Type | Description |
|---|---|
| Nullable |
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
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|