ignore

Function ignore 

Source
pub fn ignore(repo: &Path, item: &Path) -> Result<(), Error>
Expand description

Add a path to the repository’s git ignore file. Creates the ignore file if it does not exist.