MCPcopy Create free account
hub / github.com/anthropics/claude-code / dataOf

Function dataOf

mods/diff/tests/git/fetch-hunks.test.ts:23–37  ·  view source on GitHub ↗
(
    files: readonly Git.FileStat[],
    basis: Partial<Git.DiffData> = {},
  )

Source from the content-addressed store, hash-verified

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[])[] = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected