Skip to main content

interactive_adopt

Function interactive_adopt 

Source
pub fn interactive_adopt(
    file_label: &str,
    original: &str,
    modified: &str,
) -> Result<Option<String>>
Expand description

Interactively prompt the user to accept or reject each hunk of changes.

Returns Some(patched_content) if any hunks were accepted, None if all were rejected or the user quit early.