Struct git_checks::CheckGitContext
[−]
[src]
pub struct CheckGitContext { /* fields omitted */ }
Git context for use in checks.
Methods
impl CheckGitContext
[src]
fn new(workarea: PreparedGitWorkArea, topic_owner: Identity) -> Self
Create a new git context for checking a commit.
fn git(&self) -> Command
Create a git command for use in checks.
fn topic_owner(&self) -> &Identity
The publisher of the branch.
fn check_attr(&self, attr: &str, path: &str) -> Result<AttributeState>
Check an attribute of the given path.
fn gitdir(&self) -> &Path
The path to the git repository.
fn submodule_config(&self) -> &SubmoduleConfig
The submodule configuration for the repository.