Skip to content

Commit bae928d

Browse files
committed
Apply gix_macros::momo to Repository::write_blob
Signed-off-by: Jiahao XU <[email protected]>
1 parent 32f1c7d commit bae928d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gix/src/repository/object.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ impl crate::Repository {
135135
///
136136
/// We avoid writing duplicate objects to slow disks that will eventually have to be garbage collected by
137137
/// pre-hashing the data, and checking if the object is already present.
138+
#[momo]
138139
pub fn write_blob(&self, bytes: impl AsRef<[u8]>) -> Result<Id<'_>, object::write::Error> {
139140
let bytes = bytes.as_ref();
140141
let oid = gix_object::compute_hash(self.object_hash(), gix_object::Kind::Blob, bytes);

0 commit comments

Comments
 (0)