Skip to content

Commit a16e040

Browse files
committed
Added index_conflict_remove
1 parent d1ae3b6 commit a16e040

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/index.rs

+12
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,18 @@ impl Index {
485485
Ok(())
486486
}
487487

488+
/// Removes the index entries that represent a conflict of a single file.
489+
pub fn conflict_remove(&mut self, path: &Path) -> Result<(), Error> {
490+
let path = path_to_repo_path(path)?;
491+
unsafe {
492+
try_call!(raw::git_index_conflict_remove(
493+
self.raw,
494+
path
495+
));
496+
}
497+
Ok(())
498+
}
499+
488500
/// Remove all matching index entries.
489501
///
490502
/// If you provide a callback function, it will be invoked on each matching

0 commit comments

Comments
 (0)