Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,15 @@ impl Index {
Ok(())
}

/// Removes the index entries that represent a conflict of a single file.
pub fn conflict_remove(&mut self, path: &Path) -> Result<(), Error> {
let path = path_to_repo_path(path)?;
unsafe {
try_call!(raw::git_index_conflict_remove(self.raw, path));
}
Ok(())
}

/// Remove all matching index entries.
///
/// If you provide a callback function, it will be invoked on each matching
Expand Down