get函数

This commit is contained in:
HouXiaoxuan
2023-12-21 03:16:18 +08:00
parent 3ff052c105
commit ea9592d152
3 changed files with 86 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
use crate::head;
use crate::models::{commit, index};
pub fn commit(message: String, allow_enpty: bool) {
let index = index::Index::new();
// XXX true 需要替换为 index.is_empty()