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§

source§

impl ThirdParty

source

pub fn builder() -> ThirdPartyBuilder

Create a new third party import configuration.

Trait Implementations§

source§

impl Check for ThirdParty

source§

fn name(&self) -> &str

The name of the check.
source§

fn check( &self, ctx: &CheckGitContext, commit: &Commit ) -> Result<CheckResult, Box<dyn Error>>

Run the check.
source§

impl Clone for ThirdParty

source§

fn clone(&self) -> ThirdParty

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ThirdParty

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.