pub struct GitSpec { /* private fields */ }Expand description
Subcommand-aware git evaluator.
Evaluation order:
- Force-push flags → always ASK
- Read-only subcommands → ALLOW (with redirection escalation)
- Env-gated subcommands → ALLOW if all
config_enventries match, else ASK --version→ ALLOW- Everything else → ASK
Implementations§
Trait Implementations§
Source§impl CommandSpec for GitSpec
impl CommandSpec for GitSpec
Source§fn evaluate(&self, ctx: &CommandContext<'_>) -> RuleMatch
fn evaluate(&self, ctx: &CommandContext<'_>) -> RuleMatch
Evaluate the command in the given context and return a decision.
Auto Trait Implementations§
impl Freeze for GitSpec
impl RefUnwindSafe for GitSpec
impl Send for GitSpec
impl Sync for GitSpec
impl Unpin for GitSpec
impl UnsafeUnpin for GitSpec
impl UnwindSafe for GitSpec
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