mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-03-30 17:00:18 +08:00
status 实现一半
This commit is contained in:
@@ -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!("工作区没有任何改动,不需要提交");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user