MCPcopy Index your code
hub / github.com/isomorphic-git/isomorphic-git / listNotes

Function listNotes

src/api/listNotes.js:23–47  ·  view source on GitHub ↗
({
  fs,
  dir,
  gitdir = join(dir, '.git'),
  ref = 'refs/notes/commits',
  cache = {},
})

Source from the content-addressed store, hash-verified

21 */
22
23export async function listNotes({
24 fs,
25 dir,
26 gitdir = join(dir, '.git'),
27 ref = 'refs/notes/commits',
28 cache = {},
29}) {
30 try {
31 assertParameter('fs', fs)
32 assertParameter('gitdir', gitdir)
33 assertParameter('ref', ref)
34
35 const fsp = new FileSystem(fs)
36 const updatedGitdir = await discoverGitdir({ fsp, dotgit: gitdir })
37 return await _listNotes({
38 fs: fsp,
39 cache,
40 gitdir: updatedGitdir,
41 ref,
42 })
43 } catch (err) {
44 err.caller = 'git.listNotes'
45 throw err
46 }
47}

Calls 4

joinFunction · 0.90
assertParameterFunction · 0.90
discoverGitdirFunction · 0.90
_listNotesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…