pub struct Context {
pub ref_name: Option<BString>,
pub treeish: Option<ObjectId>,
pub blob: Option<ObjectId>,
}
Expand description
Context that typically doesn’t change throughout the lifetime of a pipeline, for use with process
filters.
Note that this is quite specific to third-party filters that actually make use of this additional context.
Fields§
§ref_name: Option<BString>
The name of the reference that HEAD
is pointing to. It’s passed to process
filters if present.
treeish: Option<ObjectId>
The root-level tree that contains the current entry directly or indirectly, or the commit owning the tree (if available).
This is passed to process
filters if present.
blob: Option<ObjectId>
The actual blob-hash of the data we are processing. It’s passed to process
filters if present.
Note that this hash might be different from the $Id$
of the respective ident
filter, as the latter generates the hash itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more