MCPcopy Create free account
hub / github.com/emwalker/digraph / add_blob

Method add_blob

backend/src/git/core/mod.rs:89–91  ·  view source on GitHub ↗
(&self, ser: &[u8])

Source from the content-addressed store, hash-verified

87 }
88
89 pub fn add_blob(&self, ser: &[u8]) -> Result<git2::Oid> {
90 Ok(self.inner.odb()?.write(git2::ObjectType::Blob, ser)?)
91 }
92
93 pub fn commit(&self, oid: git2::Oid) -> Result<git2::Commit<'_>> {
94 Ok(self.inner.find_commit(oid)?)

Callers 5

writeMethod · 0.80
save_changeMethod · 0.80
save_linkMethod · 0.80
save_topicMethod · 0.80
addMethod · 0.80

Calls 3

insertMethod · 0.80
writeMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected