IntegrationProvider

Trait IntegrationProvider 

Source
pub trait IntegrationProvider {
    // Required methods
    fn is_same_commit(&mut self) -> bool;
    fn is_ancestor(&mut self) -> bool;
    fn has_added_changes(&mut self) -> bool;
    fn trees_match(&mut self) -> bool;
    fn would_merge_add(&mut self) -> bool;
}
Expand description

Provider of integration signals for checking if a branch is integrated into target.

This trait enables short-circuit evaluation: methods are called in priority order, and expensive checks (like would_merge_add) are skipped if cheaper checks succeed.

Implementations:

Required Methods§

Source

fn is_same_commit(&mut self) -> bool

Source

fn is_ancestor(&mut self) -> bool

Source

fn has_added_changes(&mut self) -> bool

Source

fn trees_match(&mut self) -> bool

Source

fn would_merge_add(&mut self) -> bool

Implementors§