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

Method with_mode

crates/opencode-tui/src/components/diff.rs:53–56  ·  view source on GitHub ↗
(mut self, mode: DiffMode)

Source from the content-addressed store, hash-verified

51 }
52
53 pub fn with_mode(mut self, mode: DiffMode) -> Self {
54 self.mode = mode;
55 self
56 }
57
58 fn parse_diff(&mut self, content: &str) {
59 let mut old_line: u32 = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected