( git: IsomorphicGitDiffClient, fs: object, dir: string, ref: string, )
| 252 | } |
| 253 | |
| 254 | async function listFilesAt( |
| 255 | git: IsomorphicGitDiffClient, |
| 256 | fs: object, |
| 257 | dir: string, |
| 258 | ref: string, |
| 259 | ): Promise<string[]> { |
| 260 | if (typeof git.listFiles !== "function") return []; |
| 261 | return git.listFiles({ fs, dir, ref }); |
| 262 | } |
| 263 | |
| 264 | function makePathFilter(paths: string[] | undefined): (p: string) => boolean { |
| 265 | if (paths === undefined || paths.length === 0) return () => true; |
no test coverage detected