BranchCommit Class

Summary

A commit, together with the branch to which the commit belongs.
Assembly
GitVersion.Core.dll
Namespace
GitVersion.Git
Interfaces
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type-.->Interface0["IEquatable<Nullable<BranchCommit>>"] Type["BranchCommit"] class Type type-node

Syntax

public sealed class BranchCommit : ValueType, IEquatable<Nullable<BranchCommit>>

Attributes

Type Description
NullableContextAttribute
NullableAttribute
IsReadOnlyAttribute
DebuggerDisplayAttribute

Constructors

Name Summary
BranchCommit(ICommit, IBranch) A commit, together with the branch to which the commit belongs.

Fields

Name Constant Value Summary
Empty
Represents an absent or unresolved branch/commit pair.
static

Properties

Name Value Summary
Branch IBranch
Gets the branch associated with this commit.
Commit ICommit
Gets the commit on the branch.

Methods

Name Value Summary
Equals(Nullable<BranchCommit>) bool
Returns true when other refers to the same branch and commit.
Equals(object) bool
Returns true when obj is a BranchCommit that equals this instance.
GetHashCode() int
Returns a hash code computed from the branch and commit.

Operators

Name Value Summary
operator !=(BranchCommit, BranchCommit) bool
operator ==(BranchCommit, BranchCommit) bool

Extension Methods

Name Value Summary
NotNull<BranchCommit>(string) T
Throws System.ArgumentNullException when value is null; otherwise returns the value.