MCPcopy Create free account
hub / github.com/anomalyco/opencode / patch

Function patch

packages/opencode/src/cli/cmd/run/session-data.ts:193–202  ·  view source on GitHub ↗
(patch?: FooterPatch, view?: FooterView)

Source from the content-addressed store, hash-verified

191}
192
193function patch(patch?: FooterPatch, view?: FooterView): FooterOutput | undefined {
194 if (!patch && !view) {
195 return undefined
196 }
197
198 return {
199 patch,
200 view,
201 }
202}
203
204function out(data: SessionData, commits: SessionCommit[], footer?: FooterOutput): SessionDataOutput {
205 if (!footer) {

Callers 1

reduceSessionDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected