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

Method insert

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

Source from the content-addressed store, hash-verified

852 }
853
854 pub fn insert(
855 &mut self,
856 algorithm: GitHashAlgorithm,
857 kind: GitObjectKind,
858 bytes: Vec<u8>,
859 ) -> Result<GitObjectId, ProjectTreeError> {
860 self.insert_shared(algorithm, kind, Arc::from(bytes))
861 }
862
863 /// [`Self::insert`] for bytes another holder already shares (a
864 /// 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