MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / hashObject

Function hashObject

src/utils/hashObject.js:4–6  ·  view source on GitHub ↗
({ gitdir, type, object })

Source from the content-addressed store, hash-verified

2import { shasum } from '../utils/shasum.js'
3
4export async function hashObject({ gitdir, type, object }) {
5 return shasum(GitObject.wrap({ type, object }))
6}

Callers 3

resetIndexFunction · 0.90
getWorkdirOidFunction · 0.90
hashBlobFunction · 0.90

Calls 2

shasumFunction · 0.90
wrapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…