pub struct IndexUpdateAll { /* private fields */ }Expand description
Update all tracked files in the index.
Updates the index with the current content of tracked files.
Equivalent to git add -u.
§Examples
use ironflow_ops_git::index::IndexUpdateAll;
use ironflow_core::operation::Operation;
let op = IndexUpdateAll::new("/path/to/repo");
assert_eq!(op.kind(), "git");Implementations§
Source§impl IndexUpdateAll
impl IndexUpdateAll
Sourcepub async fn run(
&self,
_ctx: &OperationContext,
) -> Result<IndexUpdateAllOutput, OperationError>
pub async fn run( &self, _ctx: &OperationContext, ) -> Result<IndexUpdateAllOutput, OperationError>
Execute and return a typed result.
Trait Implementations§
Source§impl Operation for IndexUpdateAll
impl Operation for IndexUpdateAll
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 IndexUpdateAll
impl TypedOperation for IndexUpdateAll
Source§type Output = IndexUpdateAllOutput
type Output = IndexUpdateAllOutput
The concrete output type that
Operation::execute produces.Auto Trait Implementations§
impl Freeze for IndexUpdateAll
impl RefUnwindSafe for IndexUpdateAll
impl Send for IndexUpdateAll
impl Sync for IndexUpdateAll
impl Unpin for IndexUpdateAll
impl UnsafeUnpin for IndexUpdateAll
impl UnwindSafe for IndexUpdateAll
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