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

Function listRefs

src/api/listRefs.js:24–40  ·  view source on GitHub ↗
({
  fs,
  dir,
  gitdir = join(dir, '.git'),
  filepath,
})

Source from the content-addressed store, hash-verified

22 *
23 */
24export async function listRefs({
25 fs,
26 dir,
27 gitdir = join(dir, '.git'),
28 filepath,
29}) {
30 try {
31 assertParameter('fs', fs)
32 assertParameter('gitdir', gitdir)
33 const fsp = new FileSystem(fs)
34 const updatedGitdir = await discoverGitdir({ fsp, dotgit: gitdir })
35 return GitRefManager.listRefs({ fs: fsp, gitdir: updatedGitdir, filepath })
36 } catch (err) {
37 err.caller = 'git.listRefs'
38 throw err
39 }
40}

Callers 2

test-listRefs.jsFile · 0.85

Calls 4

joinFunction · 0.90
assertParameterFunction · 0.90
discoverGitdirFunction · 0.90
listRefsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…