Skip to content

Commit bce4478

Browse files
authored
Merge pull request #1133 from yuanyan3060/master
Added index_conflict_remove
2 parents af81314 + c979b22 commit bce4478

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: src/index.rs

+9
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,15 @@ impl Index {
518518
Ok(())
519519
}
520520

521+
/// Removes the index entries that represent a conflict of a single file.
522+
pub fn conflict_remove(&mut self, path: &Path) -> Result<(), Error> {
523+
let path = path_to_repo_path(path)?;
524+
unsafe {
525+
try_call!(raw::git_index_conflict_remove(self.raw, path));
526+
}
527+
Ok(())
528+
}
529+
521530
/// Remove all matching index entries.
522531
///
523532
/// If you provide a callback function, it will be invoked on each matching

0 commit comments

Comments
 (0)