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

Function packObjects

src/api/packObjects.js:41–67  ·  view source on GitHub ↗
({
  fs,
  dir,
  gitdir = join(dir, '.git'),
  oids,
  write = false,
  cache = {},
})

Source from the content-addressed store, hash-verified

39 *
40 */
41export async function packObjects({
42 fs,
43 dir,
44 gitdir = join(dir, '.git'),
45 oids,
46 write = false,
47 cache = {},
48}) {
49 try {
50 assertParameter('fs', fs)
51 assertParameter('gitdir', gitdir)
52 assertParameter('oids', oids)
53
54 const fsp = new FileSystem(fs)
55 const updatedGitdir = await discoverGitdir({ fsp, dotgit: gitdir })
56 return await _packObjects({
57 fs: fsp,
58 cache,
59 gitdir: updatedGitdir,
60 oids,
61 write,
62 })
63 } catch (err) {
64 err.caller = 'git.packObjects'
65 throw err
66 }
67}

Calls 4

joinFunction · 0.90
assertParameterFunction · 0.90
discoverGitdirFunction · 0.90
_packObjectsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…