pub trait DiffProvider {
// Required methods
fn parse_patch(&self, text: &str) -> Result<DiffParseResult, String>;
fn load_diff_from_git(
&self,
base: &str,
head: &str,
repo_root: &Path,
) -> Result<String, String>;
}Expand description
Port for obtaining changed ranges from diff input.
Required Methods§
Sourcefn parse_patch(&self, text: &str) -> Result<DiffParseResult, String>
fn parse_patch(&self, text: &str) -> Result<DiffParseResult, String>
Parse unified diff text and return changed ranges plus metadata.