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

Function rowOf

mods/diff/tests/git/fetch-hunks.test.ts:12–21  ·  view source on GitHub ↗
(path: string, kind: Partial<Git.FileStat> = {})

Source from the content-addressed store, hash-verified

10 type Answer = (asked: readonly string[], nth: number) => Git.RunResult
11
12 const rowOf = (path: string, kind: Partial<Git.FileStat> = {}) => ({
13 path,
14 renamedFrom: null,
15 added: 1,
16 removed: 0,
17 isBinary: false,
18 isUntracked: false,
19 isPreSession: false,
20 ...kind,
21 })
22
23 const dataOf = (
24 files: readonly Git.FileStat[],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected