MCPcopy Create free account
hub / github.com/git/git / clone

Method clone

src/hash.rs:182–189  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

180
181impl Clone for CryptoHasher {
182 fn clone(&self) -> Self {
183 let ctx = unsafe { c::git_hash_alloc() };
184 unsafe { c::git_hash_clone(ctx, self.ctx) };
185 Self {
186 algo: self.algo,
187 ctx,
188 }
189 }
190}
191
192impl Drop for CryptoHasher {

Callers 5

mainFunction · 0.80
map_oidMethod · 0.80
newMethod · 0.80
insert_intoMethod · 0.80
hasher_works_correctlyFunction · 0.80

Calls 2

git_hash_allocFunction · 0.85
git_hash_cloneFunction · 0.85

Tested by 1

hasher_works_correctlyFunction · 0.64