This commit is contained in:
Stephan Dilly 2021-05-24 00:35:00 +02:00
parent a99baa0427
commit 6ace7f8eea
2 changed files with 1 additions and 2 deletions

View file

@ -51,7 +51,6 @@ pub fn stage_lines(
idx.id = blob_id;
idx.file_size = u32::try_conv(new_content.as_bytes().len())?;
//TODO: can we simply use add_frombuffer?
index.add(&idx)?;
index.write()?;

View file

@ -11,7 +11,7 @@ use std::{
};
/// `tree_files` returns a list of `FileTree`
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct TreeFile {
/// path of this file
pub path: PathBuf,