Skip to main content

DiffPort

Trait DiffPort 

Source
pub trait DiffPort {
    // Required method
    fn changed_regions(
        &self,
        diff_ref: &str,
        working_dir: &Path,
        paths: &[String],
    ) -> Result<HashMap<String, FileChangeKind>, CrapError>;
}
Expand description

Port for computing which files/regions changed relative to a git ref.

Required Methods§

Source

fn changed_regions( &self, diff_ref: &str, working_dir: &Path, paths: &[String], ) -> Result<HashMap<String, FileChangeKind>, CrapError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§