pub struct IndexApplyOptions {
pub dry_run: bool,
pub reverse: bool,
pub head_tree_oid: Option<ObjectId>,
}Expand description
Options for apply_patch_to_index.
Fields§
§dry_run: boolWhen true, validate and report paths without writing the index or objects.
reverse: boolWhen true, reverse each patch before applying (git apply --cached -R).
head_tree_oid: Option<ObjectId>When reversing, compare results to this tree to drop index entries that match HEAD.
Trait Implementations§
Source§impl Clone for IndexApplyOptions
impl Clone for IndexApplyOptions
impl Copy for IndexApplyOptions
Source§impl Debug for IndexApplyOptions
impl Debug for IndexApplyOptions
Source§impl Default for IndexApplyOptions
impl Default for IndexApplyOptions
impl Eq for IndexApplyOptions
Source§impl PartialEq for IndexApplyOptions
impl PartialEq for IndexApplyOptions
impl StructuralPartialEq for IndexApplyOptions
Auto Trait Implementations§
impl Freeze for IndexApplyOptions
impl RefUnwindSafe for IndexApplyOptions
impl Send for IndexApplyOptions
impl Sync for IndexApplyOptions
impl Unpin for IndexApplyOptions
impl UnsafeUnpin for IndexApplyOptions
impl UnwindSafe for IndexApplyOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.