[−][src]Struct git_checks::checks::ThirdParty
Description of a third party package imported using Kitware's third party import process.
The workflow used at Kitware for third party packages is to keep all changes tracked in separate repositories. This makes tracking patches to the projects easier to manage and extract for submission to the appropriate upstream project.
When a project is imported, it uses a separate history which contains only snapshots of the tracked repository. When imported into a project, it can select a subset of files to keep, drop extra metadata into the import, or perform other transformations as necessary. Whatever the result of that is, it is added as a new commit on the history of the tracking branch for the project. This is then merged into the main project using a subtree strategy to move the project to the correct place.
This check checks to make sure that any modifications in the main project's imported location of the third party project are made on the tracking branch.
Fields
name: String
The name of the imported project.
path: String
The path the third party project lives once merged.
root: String
The root commit of the third party tracking branch.
utility: String
The location of the utility to use for importing this project.
Methods
impl ThirdParty
[src]
pub fn new<N, P, R, U>(name: N, path: P, root: R, utility: U) -> Self where
N: ToString,
P: ToString,
R: ToString,
U: ToString,
[src]
N: ToString,
P: ToString,
R: ToString,
U: ToString,
Create a new third party import configuration.
Trait Implementations
impl Check for ThirdParty
[src]
fn name(&self) -> &str
[src]
fn check(&self, ctx: &CheckGitContext, commit: &Commit) -> Result<CheckResult>
[src]
impl Debug for ThirdParty
[src]
Auto Trait Implementations
impl Send for ThirdParty
impl Unpin for ThirdParty
impl Sync for ThirdParty
impl UnwindSafe for ThirdParty
impl RefUnwindSafe for ThirdParty
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,