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

Function listFiles

src/api/listFiles.js:34–57  ·  view source on GitHub ↗
({
  fs,
  dir,
  gitdir = join(dir, '.git'),
  ref,
  cache = {},
})

Source from the content-addressed store, hash-verified

32 *
33 */
34export async function listFiles({
35 fs,
36 dir,
37 gitdir = join(dir, '.git'),
38 ref,
39 cache = {},
40}) {
41 try {
42 assertParameter('fs', fs)
43 assertParameter('gitdir', gitdir)
44
45 const fsp = new FileSystem(fs)
46 const updatedGitdir = await discoverGitdir({ fsp, dotgit: gitdir })
47 return await _listFiles({
48 fs: fsp,
49 cache,
50 gitdir: updatedGitdir,
51 ref,
52 })
53 } catch (err) {
54 err.caller = 'git.listFiles'
55 throw err
56 }
57}

Calls 4

joinFunction · 0.90
assertParameterFunction · 0.90
discoverGitdirFunction · 0.90
_listFilesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…