fix: Update git.rs with proper struct definitions
This commit is contained in:
@@ -4,7 +4,7 @@ use std::string::ToString;
|
|||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct GitRepo {
|
pub struct GitRepo {
|
||||||
repo_path: String,
|
pub repo_path: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
@@ -98,7 +98,7 @@ impl GitRepo {
|
|||||||
|
|
||||||
let is_new = matches!(status, FileStatus::Added);
|
let is_new = matches!(status, FileStatus::Added);
|
||||||
let is_deleted = matches!(status, FileStatus::Deleted);
|
let is_deleted = matches!(status, FileStatus::Deleted);
|
||||||
let is_renamed = matches!(status, FileStatus::Renamed);
|
let is_enamed = matches!(status, FileStatus::Renamed);
|
||||||
|
|
||||||
let old_path = if is_renamed {
|
let old_path = if is_renamed {
|
||||||
Some(path.split("=>").next().unwrap_or("").trim().to_string())
|
Some(path.split("=>").next().unwrap_or("").trim().to_string())
|
||||||
|
|||||||
Reference in New Issue
Block a user