Open HyperCodec opened 3 months ago
There's still all kinds of regex syntax that is not covered by the gitignore parser thingy.
Consider https://docs.rs/git2/latest/git2/struct.Status.html#method.is_ignored
https://docs.rs/git2/latest/git2/struct.Repository.html#method.statuses
So essentially let statuses = repo.statuses(); and then let files_filtered: Vec<_> = old_files.into_iter().filter(|f| !statuses.get(f.path()).is_ignored()).collect()
let statuses = repo.statuses();
let files_filtered: Vec<_> = old_files.into_iter().filter(|f| !statuses.get(f.path()).is_ignored()).collect()
There's still all kinds of regex syntax that is not covered by the gitignore parser thingy.