基本实现restore命令

This commit is contained in:
mrbeanc
2023-12-23 16:10:28 +08:00
parent 282b3556d1
commit d4009cd2cf
4 changed files with 126 additions and 32 deletions

View File

@@ -24,6 +24,7 @@ pub fn add(files: Vec<String>, all: bool, mut update: bool) {
let mut files: Vec<PathBuf> = files.into_iter().map(PathBuf::from).collect();
if dot || all || update {
//TODO files中可能包含文件夹需要统计文件夹中被删除的文件
if all {
// all 优先级最高
dot = false;