mirror of
https://github.com/MrBeanCpp/MIT.git
synced 2026-02-14 07:35:39 +08:00
tree save&load
This commit is contained in:
@@ -21,7 +21,7 @@ pub struct Commit {
|
||||
|
||||
impl Commit {
|
||||
pub fn new(index: &Index, parent: Vec<Hash>, message: String) -> Commit {
|
||||
let tree = Tree::new(index);
|
||||
let mut tree = Tree::new(index);
|
||||
let tree_hash = tree.save();
|
||||
Commit {
|
||||
hash: "".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user