Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChrisFeldmeier/OpenCodeRust
/ new
Method
new
crates/opencode-tui/src/components/diff.rs:40–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
39
impl DiffView {
40
pub fn new() -> Self {
41
Self {
42
lines: Vec::new(),
43
mode: DiffMode::Unified,
44
scroll_offset: 0,
45
}
46
}
47
48
pub fn with_content(mut self, content: &str) -> Self {
49
self.parse_diff(content);
Callers
nothing calls this directly
Calls
1
new
Function · 0.85
Tested by
no test coverage detected