Ignore .git folder

This commit is contained in:
Antonio Scandurra 2021-04-22 16:48:13 +02:00
parent 19a2856780
commit f3b663e375

View file

@ -306,7 +306,10 @@ impl Snapshot {
}
entry = parent_entry;
}
Ok(false)
relative_path.clear();
relative_path.extend(components.iter().rev());
Ok(relative_path.starts_with(".git"))
}
pub fn path_for_inode(&self, mut inode: u64, include_root: bool) -> Result<PathBuf> {