RepositoryCommit Class

Represents the current state of a repository (commit hash in Git).

Inheritance Hierarchy

Syntax

public class RepositoryCommit : IEquatable<RepositoryCommit>

Constructors

Name Description
RepositoryCommit

Initializes a new instance of the RepositoryCommit class.

Methods

Name Description
Equals(RepositoryCommit other)

Returns true if this commit is equivalent to other.

Equals(object obj)

Returns true if this commit is equivalent to obj.

GetFriendlyDescription

Returns a string describing the commit that is intended to be displayed to the user or in logs.

GetHashCode

Returns an integer suitable for use in a hashtable.

GetRuntimeVariables

Returns a dictionary of variables to make available to build trigger executions.

ToString

Returns a compact string representation of the commit.