Table of Contents

Class CommitId

Namespace
NoeticTools.Git2SemVer.Core.Tools.Git
Assembly
NoeticTools.Git2SemVer.Core.dll
public sealed class CommitId : IEquatable<CommitId>, IEquatable<string>
Inheritance
CommitId
Implements
Inherited Members

Constructors

CommitId(string)

public CommitId(string sha)

Parameters

sha string

Properties

Sha

public string Sha { get; }

Property Value

string

ShortSha

public string ShortSha { get; }

Property Value

string

Methods

Equals(CommitId?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CommitId? other)

Parameters

other CommitId

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(string?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(string? other)

Parameters

other string

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.