We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gix_macros::momo
Repository::write_blob
1 parent 32f1c7d commit bae928dCopy full SHA for bae928d
gix/src/repository/object.rs
@@ -135,6 +135,7 @@ impl crate::Repository {
135
///
136
/// We avoid writing duplicate objects to slow disks that will eventually have to be garbage collected by
137
/// pre-hashing the data, and checking if the object is already present.
138
+ #[momo]
139
pub fn write_blob(&self, bytes: impl AsRef<[u8]>) -> Result<Id<'_>, object::write::Error> {
140
let bytes = bytes.as_ref();
141
let oid = gix_object::compute_hash(self.object_hash(), gix_object::Kind::Blob, bytes);
0 commit comments