Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ with_content
Method
with_content
crates/opencode-tui/src/components/diff.rs:48–51 ·
view source on GitHub ↗
(mut self, content: &str)
Source
from the content-addressed store, hash-verified
46
}
47
48
pub fn with_content(mut self, content: &str) -> Self {
49
self.parse_diff(content);
50
self
51
}
52
53
pub fn with_mode(mut self, mode: DiffMode) -> Self {
54
self.mode = mode;
Callers
3
render_revert_card
Function · 0.80
render_tool_call
Method · 0.80
render
Method · 0.80
Calls
1
parse_diff
Method · 0.80
Tested by
no test coverage detected