Skip to content

Commit a95868b

Browse files
committed
feat: Add OdbBackend::open_writepack interface
Added `OdbBackend::open_writepack`, for opening streams that write packfiles. Added `OdbWritepack` trait for custom Writepack implementations. Added an associated type `OdbBackend::Writepack: OdbWritepack` that tells git2 what data to include for writepack implementations. Implemented `OdbWritepack` for `Infallible` so that people can opt out of implementing the Writepack trait. The implementation panics when any method is called, though that would be undefined behaviour since it would require `Infallible` to have been instantiated. A lot of types were duplicated in the process of this commit. I want other people's thoughts on how to merge them before I make any changes to their code, so I'll open a draft PR soon.
1 parent 79c0267 commit a95868b

File tree

1 file changed

+387
-12
lines changed

1 file changed

+387
-12
lines changed

0 commit comments

Comments
 (0)