extern crate gitignore;
use std::env;
pub fn main() {
let pwd = env::current_dir().unwrap();
let gitignore_path = pwd.join(".gitignore");
let file = gitignore::File::new(&gitignore_path).unwrap();
for arg in env::args().skip(1) {
let path = pwd.join(&arg);
let matches = file.is_excluded(&path).unwrap();
println!("File: {}, Excluded: {}", arg, matches);
}
}