(opts: ResetWithDeps, dir: string)
| 180 | } |
| 181 | |
| 182 | async function stagedPaths(opts: ResetWithDeps, dir: string): Promise<string[]> { |
| 183 | const matrix = await opts.git.statusMatrix({ fs: opts.fs, dir, cache: opts.cache }); |
| 184 | const paths: string[] = []; |
| 185 | for (const [filepath, head, _workdir, stage] of matrix) { |
| 186 | if (stage !== head) paths.push(filepath); |
| 187 | } |
| 188 | return paths; |
| 189 | } |
| 190 | |
| 191 | // --------------------------------------------------------------- |
| 192 | // clean |
no test coverage detected