| 21 | }) |
| 22 | |
| 23 | const dataOf = ( |
| 24 | files: readonly Git.FileStat[], |
| 25 | basis: Partial<Git.DiffData> = {}, |
| 26 | ): Git.DiffData => ({ |
| 27 | repository: Fixtures.FETCH_REPOSITORY, |
| 28 | mode: 'uncommitted', |
| 29 | stats: { filesCount: files.length, linesAdded: 0, linesRemoved: 0 }, |
| 30 | files, |
| 31 | source: { kind: 'working-tree', base: 'HEAD' }, |
| 32 | isUnborn: false, |
| 33 | baseRef: 'HEAD', |
| 34 | stalePaths: [], |
| 35 | isUntrackedWithheld: false, |
| 36 | ...basis, |
| 37 | }) |
| 38 | |
| 39 | function gitOf(answer: Answer = Fixtures.hunksReadOf) { |
| 40 | const asks: (readonly string[])[] = [] |