mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
cleanup
This commit is contained in:
parent
a99baa0427
commit
6ace7f8eea
2 changed files with 1 additions and 2 deletions
|
|
@ -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()?;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue