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 BadCommits
pub 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 BadCommits
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Check for BadCommits
[src]
impl Check for BadCommits
fn name(&self) -> &str
[src]
fn name(&self) -> &str
The 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 BadCommits
impl Sync for BadCommits
impl Sync for BadCommits