pub trait CommitHistory {
// Required methods
fn has_commits(&self) -> bool;
fn recent_commits(
&self,
from: &str,
max: usize,
) -> Result<Vec<CommitSummary>, EngineError>;
fn refs_by_commit(&self) -> HashMap<String, Vec<String>>;
}Expand description
History browsing for the review-source picker.
Required Methods§
Sourcefn has_commits(&self) -> bool
fn has_commits(&self) -> bool
False on an unborn HEAD — there is nothing to diff against.
Sourcefn recent_commits(
&self,
from: &str,
max: usize,
) -> Result<Vec<CommitSummary>, EngineError>
fn recent_commits( &self, from: &str, max: usize, ) -> Result<Vec<CommitSummary>, EngineError>
The most recent max commits reachable from from, newest first.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".