diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2025-10-27 00:44:01 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-29 07:35:01 -0700 |
| commit | bfcd218e8c9caf6bc7897604b87a9c459373064a (patch) | |
| tree | 40159624181f8b16afa613973bbb39be2f6f8f7d /builtin/commit-graph.c | |
| parent | rust: add a build.rs script for tests (diff) | |
| download | git-bfcd218e8c9caf6bc7897604b87a9c459373064a.tar.gz git-bfcd218e8c9caf6bc7897604b87a9c459373064a.zip | |
rust: add functionality to hash an object
In a future commit, we'll want to hash some data when dealing with a
loose 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 cases in this file.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions
