pub enum ShellInvocation {
DashC {
script: String,
argv0: Option<String>,
args: Vec<OsString>,
},
ScriptPath {
script_path: PathBuf,
args: Vec<OsString>,
},
}Expand description
Shell invocation mode (Git sh -c hooks and filters).
Variants§
DashC
program is sh: -c script, optional argv0 positional (hook), then args.
Fields
ScriptPath
Run sh script_path with args (traditional hook ENOEXEC retry).
Trait Implementations§
Source§impl Clone for ShellInvocation
impl Clone for ShellInvocation
Auto Trait Implementations§
impl Freeze for ShellInvocation
impl RefUnwindSafe for ShellInvocation
impl Send for ShellInvocation
impl Sync for ShellInvocation
impl Unpin for ShellInvocation
impl UnsafeUnpin for ShellInvocation
impl UnwindSafe for ShellInvocation
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