Skip to main content

log_ancestors

Function log_ancestors 

Source
pub async fn log_ancestors<S: CommitStore + ?Sized>(
    store: &S,
    from: CommitId,
    filter: &LogFilter,
    offset: usize,
    limit: usize,
) -> Result<LogPage>
Expand description

Walks the first-parent ancestry of from back to the root, newest (i.e. from) first, applying filter and then offset/limit pagination. This is a plain linear walk — bisect (milestone 7) is the log-n counterpart for narrowing to a single flip point, but log itself always has to visit every candidate commit to filter and count them.