mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-06-14 22:18:17 +08:00
解决TODO&创建TODO
This commit is contained in:
@@ -22,7 +22,7 @@ pub fn changes_to_be_committed() -> Changes {
|
||||
let tracked_files = index
|
||||
.get_tracked_files()
|
||||
.iter()
|
||||
.map(|f| util::to_root_relative_path(f))
|
||||
.map(|f| util::to_workdir_relative_path(f))
|
||||
.collect::<Vec<PathBuf>>();
|
||||
if head_hash == "" {
|
||||
// 初始提交
|
||||
@@ -43,7 +43,7 @@ pub fn changes_to_be_committed() -> Changes {
|
||||
change.modified.push(tree_file.clone());
|
||||
}
|
||||
} else {
|
||||
change.deleted.push(tree_file.clone()); //todo: abs_path?
|
||||
change.deleted.push(tree_file.clone());
|
||||
}
|
||||
}
|
||||
for index_file in index_files.iter() {
|
||||
|
||||
Reference in New Issue
Block a user