use std::path::PathBuf; use crate::history::FileCommit; pub struct WorktreeSnapshot { pub entries: Vec, pub readme_path: Option, pub readme: Option>, pub current_branch: Option, pub head_commit: Option, pub branches: Vec, pub tags: Vec, } impl WorktreeSnapshot { /// Creates a snapshot of the worktree contents and ref state. pub(crate) fn new( entries: Vec, readme_path: Option, readme: Option>, current_branch: Option, head_commit: Option, branches: Vec, tags: Vec, ) -> Self { Self { entries, readme_path, readme, current_branch, head_commit, branches, tags, } } }