MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / diff

Method diff

crates/opencode-session/src/session.rs:557–562  ·  view source on GitHub ↗

Compute diff summary from messages

(&self)

Source from the content-addressed store, hash-verified

555
556 /// Compute diff summary from messages
557 pub fn diff(&self) -> Vec<FileDiff> {
558 self.summary
559 .as_ref()
560 .and_then(|s| s.diffs.clone())
561 .unwrap_or_default()
562 }
563
564 // ========================================================================
565 // Setters

Callers 2

test_diff_emptyFunction · 0.45
test_diff_with_summaryFunction · 0.45

Calls 1

cloneMethod · 0.45

Tested by 2

test_diff_emptyFunction · 0.36
test_diff_with_summaryFunction · 0.36