summaryrefslogtreecommitdiffstats
path: root/contrib/persistent-https
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2026-02-07 20:04:43 +0000
committerJunio C Hamano <gitster@pobox.com>2026-02-07 17:41:03 -0800
commit0c04f2621ed7cbdff8b11f680fb66e1a9807f5b1 (patch)
treec90f7a932990f862c47f05ba72ddc07de1397605 /contrib/persistent-https
parent3bb0b0afaba588c04982103534afa2aae922f5bf (diff)
downloadgit-0c04f2621ed7cbdff8b11f680fb66e1a9807f5b1.tar.gz
git-0c04f2621ed7cbdff8b11f680fb66e1a9807f5b1.zip
rust: add functionality to hash an object
In a future commit, we'll want to hash some data when dealing with an object map. Let's make this easy by creating a structure to hash objects and calling into the C functions as necessary to perform the hashing. For now, we only implement safe hashing, but in the future we could add unsafe hashing if we want. Implement Clone and Drop to appropriately manage our memory. Additionally implement Write to make it easy to use with other formats that implement this trait. While we're at it, add some tests for the various hashing cases. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions