pub fn add_path_to_index(repo: &Repository, path: &Path)
Add a path to the working index.
If the path cannot be added to the index.