github GitoxideLabs/gitoxide gix-hash-v0.26.2
gix-hash v0.26.2

New Features

  • compare hash types with text

    Allow ObjectId, oid, ChangeId, Prefix, HexDisplay, and ReverseHexDisplay to
    compare with str and String values without allocating, reusing the existing
    stack encoders and Kind::hex_buf().

    Make full object and change ID comparisons symmetric but intentionally less
    lenient than parsing: only their exact canonical lowercase spelling compares
    equal. Uppercase input remains parseable, but treating differently-cased strings
    as equal through the same hash would violate PartialEq transitivity even though
    the strings differ from each other.

    Keep Prefix and truncated display comparisons directional, with the hash value
    on the left, because their text omits the hash kind or remaining digest and
    therefore cannot uniquely identify the structural value. This prevents distinct
    hashes from forming non-transitive equality chains through a shared textual
    prefix.

Commit Statistics

  • 2 commits contributed to the release.
  • 1 day passed between releases.
  • 1 commit was understood as conventional.
  • 0 issues like '(#ID)' were seen in commit messages

Commit Details

view details
  • Uncategorized
    • Compare hash types with text (75ad70c)
    • Merge pull request #2933 from GitoxideLabs/report-august (b8914ff)

Don't miss a new gitoxide release

NewReleases is sending notifications on new releases.