MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / insert

Method insert

atomic-repository/src/repository/project_tree.rs:832–839  ·  view source on GitHub ↗
(
        &mut self,
        algorithm: GitHashAlgorithm,
        kind: GitObjectKind,
        bytes: Vec<u8>,
    )

Source from the content-addressed store, hash-verified

830 }
831
832 pub fn insert(
833 &mut self,
834 algorithm: GitHashAlgorithm,
835 kind: GitObjectKind,
836 bytes: Vec<u8>,
837 ) -> Result<GitObjectId, ProjectTreeError> {
838 self.insert_shared(algorithm, kind, Arc::from(bytes))
839 }
840
841 /// [`Self::insert`] for bytes another holder already shares (a
842 /// repository entry's bytes): no copy is made.

Callers 15

insert_authoritativeMethod · 0.45
insert_probableMethod · 0.45
insert_lossMethod · 0.45
merge_move_evidenceFunction · 0.45
append_session_logMethod · 0.45
import_v3_bytesMethod · 0.45

Calls 1

insert_sharedMethod · 0.80