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
ShortSha
public string ShortSha { get; }
Property Value
Methods
Equals(CommitId?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CommitId? other)
Parameters
other
CommitIdAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Equals(string?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(string? other)
Parameters
other
stringAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.