Struct git_checks::checks::SubmoduleAvailable
[−]
[src]
pub struct SubmoduleAvailable { /* fields omitted */ }
Check that submodules are reachable from a given branch and available.
Methods
impl SubmoduleAvailable
[src]
fn new() -> Self
Checks that submodules in the project are available.
fn require_first_parent(&mut self, require: bool) -> &mut Self
Sets whether a first parent history is required to reach the commit.
If the merge commit of the submodule into the tracked branch should be required, set this flag.
Trait Implementations
impl Debug for SubmoduleAvailable
[src]
impl Default for SubmoduleAvailable
[src]
fn default() -> SubmoduleAvailable
Returns the "default value" for a type. Read more
impl Clone for SubmoduleAvailable
[src]
fn clone(&self) -> SubmoduleAvailable
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for SubmoduleAvailable
[src]
impl Check for SubmoduleAvailable
[src]
fn name(&self) -> &str
The name of the check.
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
Run the check.