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.

Implementors§