[−][src]Struct git_checks::impl_prelude::Topic
Representation of a topic with information useful for commit checks.
Fields
base: CommitId
The SHA1 of the base commit.
sha1: CommitId
The SHA1 of the commit.
diffs: Vec<DiffInfo>
Information about files that changed in this commit.
Methods
impl Topic
[src]
impl Topic
pub fn new(ctx: &GitContext, base: &CommitId, sha1: &CommitId) -> Result<Self> | [src] |
Create a new commit from the given context for the SHA1.
pub fn file_patch<P>(&self, path: P) -> Result<String> where | [src] |
Get the patch difference for the given path.
Trait Implementations
impl Content for Topic
[src]
impl Content for Topic
fn workarea(&self, ctx: &GitContext) -> Result<GitWorkArea> | [src] |
fn sha1(&self) -> Option<&CommitId> | [src] |
fn diffs(&self) -> &Vec<DiffInfo> | [src] |
fn path_diff(&self, path: &FileName) -> Result<String> | [src] |
fn modified_files(&self) -> Vec<&FileName> | [src] |
Return a vector of files modified in a diff. Read more
impl Debug for Topic
[src]
impl Debug for Topic
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |