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

Function _writeTree

src/commands/writeTree.js:15–26  ·  view source on GitHub ↗
({ fs, gitdir, tree })

Source from the content-addressed store, hash-verified

13 * @returns {Promise<string>}
14 */
15export async function _writeTree({ fs, gitdir, tree }) {
16 // Convert object to buffer
17 const object = GitTree.from(tree).toObject()
18 const oid = await writeObject({
19 fs,
20 gitdir,
21 type: 'tree',
22 object,
23 format: 'content',
24 })
25 return oid
26}

Callers 5

processTreeEntryFunction · 0.90
writeTreeChangesFunction · 0.90
_removeNoteFunction · 0.90
_addNoteFunction · 0.90
writeTreeFunction · 0.90

Calls 3

writeObjectFunction · 0.70
toObjectMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…