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]
impl BadCommitspub fn new<I>(bad_commits: I) -> Self where
I: IntoIterator,
I::Item: ToString, [src]
pub fn new<I>(bad_commits: I) -> Self where
I: IntoIterator,
I::Item: ToString, Create a new check which checks for and denies branches with the given bad commits.
Trait Implementations
impl Debug for BadCommits[src]
impl Debug for BadCommitsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Check for BadCommits[src]
impl Check for BadCommitsfn name(&self) -> &str[src]
fn name(&self) -> &strThe name of the check.
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>[src]
fn check(&self, _: &CheckGitContext, commit: &Commit) -> Result<CheckResult>Run the check.
Auto Trait Implementations
impl Send for BadCommits
impl Send for BadCommitsimpl Sync for BadCommits
impl Sync for BadCommits