changed head to .head

This commit is contained in:
Logan 2024-09-07 15:55:28 -05:00
parent 475e6ff43d
commit 54fa2098ea

View file

@ -38,7 +38,8 @@ fn opts() -> Options {
} }
fn convert_all(src_path: &Path, dist_path: &Path) { fn convert_all(src_path: &Path, dist_path: &Path) {
let head = std::fs::read_to_string("./head").unwrap_or_default(); let head_path = src_path.join(".head");
let head = std::fs::read_to_string(head_path).unwrap_or_default();
for entry in ignore::Walk::new(src_path) { for entry in ignore::Walk::new(src_path) {
let entry = match entry { let entry = match entry {
Ok(p) => p, Ok(p) => p,