fix: Update git.rs with proper struct definitions
Some checks failed
CI / lint (push) Failing after 3s
CI / build (push) Has been skipped
CI / test (push) Has been skipped

This commit is contained in:
2026-02-01 12:36:39 +00:00
parent 1e4086d33c
commit 33beac0889

View File

@@ -4,7 +4,7 @@ use std::string::ToString;
#[derive(Debug, Clone)]
pub struct GitRepo {
repo_path: String,
pub repo_path: String,
}
#[derive(Debug, Clone)]
@@ -98,7 +98,7 @@ impl GitRepo {
let is_new = matches!(status, FileStatus::Added);
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 {
Some(path.split("=>").next().unwrap_or("").trim().to_string())