pub fn ignore(repo: &Path, item: &Path) -> Result<(), Error>
Add a path to the repository’s git ignore file. Creates the ignore file if it does not exist.