status 实现一半

This commit is contained in:
HouXiaoxuan
2023-12-21 03:20:04 +08:00
parent ea9592d152
commit 0c154163ed
4 changed files with 65 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ use crate::models::{commit, index};
pub fn commit(message: String, allow_enpty: bool) {
let index = index::Index::new();
// XXX true 需要替换为 index.is_empty()
// XXX true 需要替换为 status::changes_to_be_committed()
if false && !allow_enpty {
println!("工作区没有任何改动,不需要提交");
}