|
|
@ -8,7 +8,7 @@ use std::path::PathBuf; |
|
|
|
use directories::ProjectDirs;
|
|
|
|
use structopt::StructOpt;
|
|
|
|
|
|
|
|
use log::{info, trace};
|
|
|
|
use log::{debug, info, trace};
|
|
|
|
|
|
|
|
// Local Imports
|
|
|
|
use crate::cache::File as FileCache;
|
|
|
@ -88,6 +88,7 @@ fn run_add(glob: &str) -> Result<()> { |
|
|
|
file_path.push(".gitignore");
|
|
|
|
let gitig = Gitignore::from_path(&file_path);
|
|
|
|
gitig.add_line(glob)?;
|
|
|
|
debug!("Added '{}' to {}", glob, gitig);
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|