/// <summary> Two IndexCommits are equal if both their Directory and versions are equal.</summary> public override bool Equals(System.Object other) { if (other is IndexCommit) { IndexCommit otherCommit = (IndexCommit)other; return(otherCommit.GetDirectory().Equals(GetDirectory()) && otherCommit.GetVersion() == GetVersion()); } else { return(false); } }
public override long GetVersion() { return(cp.GetVersion()); }