aboutsummaryrefslogtreecommitdiffstats
path: root/tree-diff.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2025-10-27 00:44:03 +0000
committerJunio C Hamano <gitster@pobox.com>2025-10-29 07:35:01 -0700
commit1fc338a747f70a0f9436c2f09d54089f490c7603 (patch)
tree1ceadbbb5079f9e38cb28e05bd381cc0d4d4fb6f /tree-diff.c
parentrust: add a new binary loose object map format (diff)
downloadgit-1fc338a747f70a0f9436c2f09d54089f490c7603.tar.gz
git-1fc338a747f70a0f9436c2f09d54089f490c7603.zip
rust: add a small wrapper around the hashfile code
Our new binary loose object map code avoids needing to be intimately involved with file handling by simply writing data to an object implement Write. This makes it very easy to test by writing to a Cursor wrapping a Vec for tests, and thus decouples it from intimate knowledge about how we handle files. However, we will actually want to write our data to an actual file, since that's the most practical way to persist data. Implement a wrapper around the hashfile code that implements the Write trait so that we can write our loose object map into a file. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-diff.c')
0 files changed, 0 insertions, 0 deletions