Closed FintanH closed 1 year ago
Improvements on top of https://github.com/radicle-dev/radicle-git/pull/99 :) thanks for laying the ground work :+1:
Improvements on top of #99 :) thanks for laying the ground work 👍
I think it's better for me to land #99 first: it will provide clearer authorship and history, as well as be easier to review changes. You can always submit / update improvements after that.
Avoid copying the bytes content of a
git2::Blob
by introducing a generic parameter on Blob.The parameter can either be a
BlobRef
orBlobVec
, by using theto_owned
function.BlobRef
andBlobVec
both implementAsRef
andDeref
for[u8]
to make them easier to use and allows the definition of generic functions onT
.