feat(status): started status without nsobject fully implemented

This commit is contained in:
grimhilt
2024-09-01 20:12:02 +02:00
parent fb57bd6565
commit c7bde2c8d5
11 changed files with 436 additions and 1 deletions

9
src/utils/path.rs Normal file
View File

@@ -0,0 +1,9 @@
use std::path::{Path, PathBuf};
pub fn to_repo_relative(path: &PathBuf, root: &PathBuf) -> PathBuf {
path.strip_prefix(root).unwrap().to_path_buf()
}
pub fn to_string(path: &PathBuf) -> String {
path.to_str().unwrap().to_string()
}