MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / store_stash

Function store_stash

crates/opencode-tui/src/components/prompt.rs:1431–1438  ·  view source on GitHub ↗
(path: &PathBuf, entries: &[PromptStashEntry])

Source from the content-addressed store, hash-verified

1429}
1430
1431fn store_stash(path: &PathBuf, entries: &[PromptStashEntry]) {
1432 let payload = StashStore {
1433 entries: entries.to_vec(),
1434 };
1435 if let Ok(json) = serde_json::to_string(&payload) {
1436 let _ = std::fs::write(path, json);
1437 }
1438}
1439
1440/// Extract a `#line` or `#line-line` range suffix from a file path reference.
1441/// Returns the base path and an optional (start, optional_end) line range.

Callers 3

stash_currentMethod · 0.85
pop_stashMethod · 0.85
remove_stashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected