[−][src]Struct git_checks_core::CheckGitContext
Git context for use in checks.
Methods
impl CheckGitContext
[src]
pub fn new(workarea: GitWorkArea, topic_owner: Identity) -> Self
[src]
Create a new git context for checking a commit.
pub fn git(&self) -> Command
[src]
Create a git command for use in checks.
pub fn topic_owner(&self) -> &Identity
[src]
The publisher of the branch.
pub fn check_attr<A, P>(
&self,
attr: A,
path: P
) -> Result<AttributeState, AttributeError> where
A: AsRef<str>,
P: AsRef<OsStr>,
[src]
&self,
attr: A,
path: P
) -> Result<AttributeState, AttributeError> where
A: AsRef<str>,
P: AsRef<OsStr>,
Check an attribute of the given path.
pub fn workarea(&self) -> &GitWorkArea
[src]
The workarea used for check operations.
pub fn workarea_mut(&mut self) -> &mut GitWorkArea
[src]
The workarea used for check operations.
pub fn gitdir(&self) -> &Path
[src]
The path to the git repository.
pub fn submodule_config(&self) -> &SubmoduleConfig
[src]
The submodule configuration for the repository.
Trait Implementations
Auto Trait Implementations
impl Send for CheckGitContext
impl Sync for CheckGitContext
impl Unpin for CheckGitContext
impl UnwindSafe for CheckGitContext
impl RefUnwindSafe for CheckGitContext
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,