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

Function sameCommit

packages/opencode/src/cli/cmd/run/subagent-data.ts:110–123  ·  view source on GitHub ↗
(left: StreamCommit, right: StreamCommit)

Source from the content-addressed store, hash-verified

108}
109
110function sameCommit(left: StreamCommit, right: StreamCommit) {
111 return (
112 left.kind === right.kind &&
113 left.text === right.text &&
114 left.phase === right.phase &&
115 left.source === right.source &&
116 left.messageID === right.messageID &&
117 left.partID === right.partID &&
118 left.tool === right.tool &&
119 left.interrupted === right.interrupted &&
120 left.toolState === right.toolState &&
121 left.toolError === right.toolError
122 )
123}
124
125function text(value: unknown): string | undefined {
126 if (typeof value !== "string") {

Callers 2

mergeLiveCommitFunction · 0.85
appendCommitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected