Struct git_checks::ThirdParty
source · [−]pub struct ThirdParty {
pub name: String,
pub path: String,
pub root: String,
pub utility: String,
}
Expand description
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.
Configuration: Required
path: String
The path the third party project lives once merged.
Configuration: Required
root: String
The root commit of the third party tracking branch.
Configuration: Required
utility: String
The location of the utility to use for importing this project.
Configuration: Required
Implementations
sourceimpl ThirdParty
impl ThirdParty
sourcepub fn builder() -> ThirdPartyBuilder
pub fn builder() -> ThirdPartyBuilder
Create a new third party import configuration.
Trait Implementations
sourceimpl Check for ThirdParty
impl Check for ThirdParty
sourceimpl Clone for ThirdParty
impl Clone for ThirdParty
sourcefn clone(&self) -> ThirdParty
fn clone(&self) -> ThirdParty
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ThirdParty
impl Send for ThirdParty
impl Sync for ThirdParty
impl Unpin for ThirdParty
impl UnwindSafe for ThirdParty
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more