diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-04 17:13:00 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-04 17:13:00 +0800 |
| commit | e55877f8aff2153e636dc4b039bb6149f7a53ea3 (patch) | |
| tree | 77d04d39f6da95e04c48e6c2872bfb6c35c6fabb /crates/vcs_data/src/data/local/latest_file_data.rs | |
| parent | a6a3f42c7be2560d78c832161493574a2a2b4d16 (diff) | |
Add file_histories method to LatestFileData
Diffstat (limited to 'crates/vcs_data/src/data/local/latest_file_data.rs')
| -rw-r--r-- | crates/vcs_data/src/data/local/latest_file_data.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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, |
