Skip to main content

LogReader

Trait LogReader 

Source
pub trait LogReader {
    // Required methods
    fn log(&self, opts: Option<&LogOptions>) -> AppResult<Vec<Commit>>;
    fn merge_base(&self, a: &str, b: &str) -> AppResult<Oid>;
    fn is_ancestor(&self, ancestor: &str, descendant: &str) -> AppResult<bool>;
}
Expand description

Read-only access to commit history and graph queries.

Required Methods§

Source

fn log(&self, opts: Option<&LogOptions>) -> AppResult<Vec<Commit>>

Returns commits reachable from HEAD, filtered by the provided options.

Source

fn merge_base(&self, a: &str, b: &str) -> AppResult<Oid>

Returns the merge base between two revisions.

Source

fn is_ancestor(&self, ancestor: &str, descendant: &str) -> AppResult<bool>

Reports whether ancestor is an ancestor of descendant.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§