pub fn rm_file(repo: &Repository, relative_path: &Path) -> Result<(), Error> {
    // Get repo index
    let mut index = repo.index()?;

    // Remove path from index
    index.remove_path(relative_path)?;

    // Write index
    index.write()
}
/// Remove file from staging index
///
/// This *does not* support folders
Remove file from staging index
This *does not* support folders
Remove file from staging index This * does not * support folders
pub fn rm_file(repo: &Repository, relative_path: &Path) -> Result<(), Error> {
    // Get repo index
    let mut index = repo.index()?;
    // Remove path from index
    index.remove_path(relative_path)?;
    // Write index
    index.write()
}
pub fn rm_file ( repo : & Repository , relative_path : & Path ) -> Result < ( ) , Error > { // Get repo index let mut index = repo . index ( ) ? ; // Remove path from index index . remove_path ( relative_path ) ? ; // Write index index . write ( ) }
Remove file from staging index
This *does not* support folders
Remove file from staging index This * does not * support folders
repo
&Repository
relative_path
&Path
repo
&Repository
relative_path
&Path