diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-20 17:40:22 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-20 17:40:22 +0800 |
| commit | 2cba54e5176ef8e6f670dbb552d7333a9f42ae36 (patch) | |
| tree | a9cbfacc3d6c64721137922fae39c13b2ef4a262 /crates/vcs_data/src/data/local.rs | |
| parent | 03335c9816085cde77e0ffbae35e7f85623b7293 (diff) | |
feat: Enhance version tracking in LatestFileData
Extend LatestFileData to track file versions alongside holding status, update method signatures to include version information.
Diffstat (limited to 'crates/vcs_data/src/data/local.rs')
| -rw-r--r-- | crates/vcs_data/src/data/local.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/crates/vcs_data/src/data/local.rs b/crates/vcs_data/src/data/local.rs index cbf5b73..85d431f 100644 --- a/crates/vcs_data/src/data/local.rs +++ b/crates/vcs_data/src/data/local.rs @@ -13,7 +13,7 @@ use vcs_docs::docs::READMES_LOCAL_WORKSPACE_TODOLIST; use crate::{ constants::{ CLIENT_FILE_LOCAL_SHEET, CLIENT_FILE_TODOLIST, CLIENT_FILE_WORKSPACE, - CLIENT_PATH_LOCAL_SHEET, + CLIENT_PATH_LOCAL_SHEET, CLIENT_SUFFIX_LOCAL_SHEET_FILE, }, current::{current_local_path, find_local_path}, data::{ @@ -29,10 +29,10 @@ use crate::{ pub mod cached_sheet; pub mod config; pub mod file_status; +pub mod latest_file_data; pub mod latest_info; pub mod local_files; pub mod local_sheet; -pub mod member_held; const SHEET_NAME: &str = "{sheet_name}"; const ACCOUNT_NAME: &str = "{account}"; @@ -179,7 +179,12 @@ impl LocalWorkspace { Ok(()) } - collect_sheet_paths(&local_sheet_path, ".json", &mut sheet_paths).await?; + collect_sheet_paths( + &local_sheet_path, + CLIENT_SUFFIX_LOCAL_SHEET_FILE, + &mut sheet_paths, + ) + .await?; Ok(sheet_paths) } } |
