Struct git_checks::checks::BadCommits
[−]
[src]
pub struct BadCommits { /* fields omitted */ }
Check for commits which should not be in the history.
Methods
impl BadCommits
[src]
fn new<S: ToString>(bad_commits: &[S]) -> Self
Create a new check which checks for and denies branches with the given bad commits.
Trait Implementations
impl Debug for BadCommits
[src]
impl Check for BadCommits
[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.