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:
LazyGitIntegration: Makes fresh git calls (forwt remove)PrecomputedIntegration: Uses cached data (forwt listprogressive rendering)