MCPcopy Index your code
hub / github.com/anomalyco/opencode / encodeNulTerminatedPaths

Function encodeNulTerminatedPaths

packages/opencode/src/snapshot/index.ts:77–77  ·  view source on GitHub ↗
(files: string[])

Source from the content-addressed store, hash-verified

75 const args = (cmd: string[]) => ["--git-dir", state.gitdir, "--work-tree", state.worktree, ...cmd]
76
77 const encodeNulTerminatedPaths = (files: string[]) => files.join("\0") + "\0"
78 const encodeTopLevelLiteralPathspecs = (files: string[]) =>
79 encodeNulTerminatedPaths(files.map((file) => `:(top,literal)${file}`))
80

Callers 2

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected