Struct git_checks::CheckGitContext [−][src]
pub struct CheckGitContext { /* fields omitted */ }Git context for use in checks.
Methods
impl CheckGitContext[src]
impl CheckGitContextpub fn new(workarea: GitWorkArea, topic_owner: Identity) -> Self[src]
pub fn new(workarea: GitWorkArea, topic_owner: Identity) -> SelfCreate a new git context for checking a commit.
pub fn git(&self) -> Command[src]
pub fn git(&self) -> CommandCreate a git command for use in checks.
pub fn topic_owner(&self) -> &Identity[src]
pub fn topic_owner(&self) -> &IdentityThe publisher of the branch.
pub fn check_attr<A, P>(&self, attr: A, path: P) -> Result<AttributeState> where
A: AsRef<str>,
P: AsRef<OsStr>, [src]
pub fn check_attr<A, P>(&self, attr: A, path: P) -> Result<AttributeState> where
A: AsRef<str>,
P: AsRef<OsStr>, Check an attribute of the given path.
pub fn checkout<P>(&self, paths: &[P]) -> Result<()> where
P: AsRef<OsStr>, [src]
pub fn checkout<P>(&self, paths: &[P]) -> Result<()> where
P: AsRef<OsStr>, : UNSAFE: use Content::workarea to check out files
Checkout paths from the index to the filesystem.
Normally, files are not placed into the worktree, so checks which use other tools to inspect file contents do not work. This method checks out files to the working directory and fixes up Git's knowledge that they are there.
All paths supported by Git's globbing and searching mechanisms are supported.
pub fn cd_to_work_tree<'a>(&self, cmd: &'a mut Command) -> &'a mut Command[src]
pub fn cd_to_work_tree<'a>(&self, cmd: &'a mut Command) -> &'a mut Command: not useful without the checkout method
Run a command from the work tree root.
pub fn workarea(&self) -> &GitWorkArea[src]
pub fn workarea(&self) -> &GitWorkAreaThe workarea used for check operations.
pub fn workarea_mut(&mut self) -> &mut GitWorkArea[src]
pub fn workarea_mut(&mut self) -> &mut GitWorkAreaThe workarea used for check operations.
pub fn gitdir(&self) -> &Path[src]
pub fn gitdir(&self) -> &PathThe path to the git repository.
pub fn submodule_config(&self) -> &SubmoduleConfig[src]
pub fn submodule_config(&self) -> &SubmoduleConfigThe submodule configuration for the repository.
Trait Implementations
impl Debug for CheckGitContext[src]
impl Debug for CheckGitContextAuto Trait Implementations
impl Send for CheckGitContext
impl Send for CheckGitContextimpl Sync for CheckGitContext
impl Sync for CheckGitContext