fix add -A

This commit is contained in:
grimhilt
2023-10-28 22:12:27 +02:00
parent 81c24b5e3c
commit 53b103af9e
6 changed files with 54 additions and 45 deletions

View File

@@ -104,6 +104,10 @@ pub fn repo_root() -> PathBuf {
}
}
pub fn is_nextsync_config(path: PathBuf) -> bool {
path.ends_with(".nextsync") || path.starts_with(".nextsync")
}
pub fn nextsync() -> PathBuf {
let mut path = repo_root();
path.push(".nextsync");