Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Reference picker PreviewCache in caching spec (#2029)
Maximilian Roos0d46fa991e54
diff --git a/src/git/repository/mod.rs b/src/git/repository/mod.rsindex d1f56a473..6aea33c45 100644--- a/src/git/repository/mod.rs+++ b/src/git/repository/mod.rs@@ -56,6 +56,9 @@//! These are lazy initialization, not caches — they have no invalidation concerns//! because the container is initialized once and never replaced — unlike `RepoCache`,//! there is no risk of reading stale external state.+//!+//! The picker also maintains a `PreviewCache` (`Arc<DashMap>` in `commands/picker/items.rs`)+//! for rendered preview output, scoped to a single picker session.use std::io::{BufRead, BufReader, Write};use std::path::{Path, PathBuf};