From e55877f8aff2153e636dc4b039bb6149f7a53ea3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 4 Jan 2026 17:13:00 +0800 Subject: Add file_histories method to LatestFileData --- crates/vcs_data/src/data/local/latest_file_data.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates') diff --git a/crates/vcs_data/src/data/local/latest_file_data.rs b/crates/vcs_data/src/data/local/latest_file_data.rs index 720c634..21c647c 100644 --- a/crates/vcs_data/src/data/local/latest_file_data.rs +++ b/crates/vcs_data/src/data/local/latest_file_data.rs @@ -70,6 +70,14 @@ impl LatestFileData { self.versions.get(vfid) } + /// Get the version of the file with the given ID. + pub fn file_histories( + &self, + vfid: &VirtualFileId, + ) -> Option<&Vec<(VirtualFileVersion, VirtualFileVersionDescription)>> { + self.histories.get(vfid) + } + /// Update the held status of the files. pub fn update_info( &mut self, -- cgit