Skip to main content

GitCapabilities

Trait GitCapabilities 

Source
pub trait GitCapabilities {
    // Required methods
    fn list_files(&self, root: &Path) -> Option<Vec<String>>;
    fn churn_scores(&self, root: &Path) -> BTreeMap<String, f64>;
}
Expand description

Git data needed by the scanner.

Required Methods§

Source

fn list_files(&self, root: &Path) -> Option<Vec<String>>

Return tracked and untracked file paths relative to root.

Source

fn churn_scores(&self, root: &Path) -> BTreeMap<String, f64>

Return normalized 0..1 churn scores keyed by paths relative to root.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§