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

Function depsOf

mods/diff/tests/git/fetch-diff.test.ts:22–38  ·  view source on GitHub ↗
(
    script: Script,
    overrides: Partial<Git.GitDeps> = {},
  )

Source from the content-addressed store, hash-verified

20 new Map(entries)
21
22 function depsOf(
23 script: Script,
24 overrides: Partial<Git.GitDeps> = {},
25 ): ScriptedDeps {
26 const scripted = Fixtures.scriptedGitOf(script)
27
28 return {
29 argvs: scripted.argvs,
30 run: scripted.run,
31 repository: Fixtures.FETCH_REPOSITORY,
32 mtimeOf: () => Promise.resolve(Fixtures.DURING_SESSION_MS),
33 entryKindsOf: () => Promise.resolve(listingOf(Fixtures.FILES_LISTING)),
34 sessionStartMs: Fixtures.GIT_SESSION_START_MS,
35 onBranchBase: () => undefined,
36 ...overrides,
37 }
38 }
39
40 const unbornScriptOf = (): Script => ({
41 [Fixtures.VS_HEAD]: Fixtures.UNSCRIPTED,

Callers 2

fetchedInFunction · 0.70
fetch-diff.test.tsFile · 0.70

Calls 1

listingOfFunction · 0.70

Tested by

no test coverage detected