({
fs,
dir,
gitdir = join(dir, '.git'),
ref = 'refs/notes/commits',
cache = {},
})
| 21 | */ |
| 22 | |
| 23 | export 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 | } |
no test coverage detected
searching dependent graphs…