pub enum CommitPatchInput {
Hunks(HunkSelection),
Patches(Vec<FilePatch>),
}Expand description
Hunk ids or parsed patches for CommitScope::Patch.
Variants§
Hunks(HunkSelection)
Stable ids from grit diff --json.
Patches(Vec<FilePatch>)
Unified diff hunks (git apply --cached preimage = index).
Trait Implementations§
Source§impl Clone for CommitPatchInput
impl Clone for CommitPatchInput
Auto Trait Implementations§
impl Freeze for CommitPatchInput
impl RefUnwindSafe for CommitPatchInput
impl Send for CommitPatchInput
impl Sync for CommitPatchInput
impl Unpin for CommitPatchInput
impl UnsafeUnpin for CommitPatchInput
impl UnwindSafe for CommitPatchInput
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