git2-rs icon indicating copy to clipboard operation
git2-rs copied to clipboard

SHA-256

Open lorenzleutgeb opened this issue 1 year ago • 1 comments

Consider the improvements regarding support for SHA-256 in Git, last mentioned in the release notes for version 2.45:

  • https://github.com/git/git/blob/master/Documentation/RelNotes/2.45.0.txt
  • https://github.blog/open-source/git/highlights-from-git-2-45/

libgit2 has experimental support for SHA-256, guarded by -DEXPERIMENTAL_SHA256.

There is a reference to this in git2-rs:

https://github.com/rust-lang/git2-rs/blob/abbd64e80366b113b0a5056929ca3b58861e2570/libgit2-sys/lib.rs#L1174

It might be useful to allow users explore SHA-256 compatibility with git2-rs, probably behind a feature flag.

lorenzleutgeb avatar Oct 10 '24 12:10 lorenzleutgeb