pub struct MergeBaseOp { /* private fields */ }Expand description
Find the merge base between two commits.
§Examples
use ironflow_ops_git::merge::MergeBaseOp;
use ironflow_core::operation::Operation;
let op = MergeBaseOp::new("/path/to/repo", "abc123", "def456");
assert_eq!(op.kind(), "git");Implementations§
Source§impl MergeBaseOp
impl MergeBaseOp
Sourcepub fn new(
repo_path: impl Into<PathBuf>,
one: impl Into<String>,
two: impl Into<String>,
) -> Self
pub fn new( repo_path: impl Into<PathBuf>, one: impl Into<String>, two: impl Into<String>, ) -> Self
Create a new merge-base operation.
Sourcepub async fn run(
&self,
_ctx: &OperationContext,
) -> Result<MergeBaseOutput, OperationError>
pub async fn run( &self, _ctx: &OperationContext, ) -> Result<MergeBaseOutput, OperationError>
Execute and return a typed result.
Trait Implementations§
Source§impl Operation for MergeBaseOp
impl Operation for MergeBaseOp
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<Value, OperationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<Value, OperationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the operation and return the result as JSON. Read more
Source§impl TypedOperation for MergeBaseOp
impl TypedOperation for MergeBaseOp
Source§type Output = MergeBaseOutput
type Output = MergeBaseOutput
The concrete output type that
Operation::execute produces.Auto Trait Implementations§
impl Freeze for MergeBaseOp
impl RefUnwindSafe for MergeBaseOp
impl Send for MergeBaseOp
impl Sync for MergeBaseOp
impl Unpin for MergeBaseOp
impl UnsafeUnpin for MergeBaseOp
impl UnwindSafe for MergeBaseOp
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