summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-11-17 20:30:29 +0800
committer魏曹先生 <1992414357@qq.com>2025-11-17 20:30:29 +0800
commite7b449ea3030d9923042419522ebe17329746884 (patch)
tree19b8865047a4fcb4905c863d54668bd666de9c59
parent85446f9f7dd491d7e09519817af9f84b73132354 (diff)
Use config directory for jvcs data
The data directory is changed from the system's document directory to the local config directory, and the folder name is shortened from ".just_enough_vcs" to "jvcs".
-rw-r--r--crates/vcs_data/src/current.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/vcs_data/src/current.rs b/crates/vcs_data/src/current.rs
index 97b5058..1b3df46 100644
--- a/crates/vcs_data/src/current.rs
+++ b/crates/vcs_data/src/current.rs
@@ -74,5 +74,5 @@ pub fn find_local_path(path: impl Into<PathBuf>) -> Option<PathBuf> {
/// Get the system's document directory and join with .just_enough_vcs
pub fn current_doc_dir() -> Option<PathBuf> {
- dirs::document_dir().map(|path| path.join(".just_enough_vcs"))
+ dirs::config_local_dir().map(|path| path.join("jvcs"))
}