-
-
Notifications
You must be signed in to change notification settings - Fork 339
Sha 256 support #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 to this feature. Excited to see this implemented. |
+1. Given that git no longer considers sha256 support experimental and forges such as forgejo added support, this has became more relevant for new git repositories. |
+1. Without sha256 support Starship prompt cannot detect repositories using that algorithm. |
should the old SHA1 support also be put behind a feature toggle (enabled by default), so that builds can choose to only support SHA256 ? |
Starship would definitely be a great motivation to finally go through with this.
gitoxide/gix-hash/src/object_id.rs Lines 13 to 14 in ec69c88
Right now it's an enum and one could add another variant to it, behind a feature toggle, as the size of these hash digests definitely affects the resource requirements of operations like In any case, if this were to move forward, I think it would be good to review the hash representation first, as it's very relevant for performance.
I see the point and |
Even though the foundation is set, it needs another push to actually make it work with different kinds of hashes.
Tasks
git-hash
and replace them with parametric usage ofgit_hash::Kind
--object-hash
information to thegix
CLIgit-features
feature togglesunderstand and implement pack idx V3.- see if git actually implements this, and maybe decide thatgitoxide
won't handle the transition period, is either one has or another.uninmplemented!()
invocation to configure the repo for expecting a different hashImplementation ideas
oid
or allow efficient conversions tooid
(it's just a slice, so that should work for specifically sized types as well especially if these were provided bygit-hash
.Notes
The text was updated successfully, but these errors were encountered: