feat(status): started status without nsobject fully implemented
This commit is contained in:
1 parent
fb57bd6565
commit
c7bde2c8d5
11 files changed
+436
-1
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user