Struct jujutsu_lib::working_copy::LockedWorkingCopy
source · [−]pub struct LockedWorkingCopy<'a> { /* private fields */ }Expand description
A working copy that’s locked on disk. The lock is held until you call
finish() or discard().
Implementations
sourceimpl LockedWorkingCopy<'_>
impl LockedWorkingCopy<'_>
sourcepub fn old_operation_id(&self) -> &OperationId
pub fn old_operation_id(&self) -> &OperationId
The operation at the time the lock was taken
sourcepub fn old_tree_id(&self) -> &TreeId
pub fn old_tree_id(&self) -> &TreeId
The tree at the time the lock was taken
pub fn write_tree(&mut self, base_ignores: Arc<GitIgnoreFile>) -> TreeId
pub fn check_out(
&mut self,
new_tree: &Tree
) -> Result<CheckoutStats, CheckoutError>
pub fn reset(&mut self, new_tree: &Tree) -> Result<(), ResetError>
pub fn finish(self, operation_id: OperationId)
pub fn discard(self)
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LockedWorkingCopy<'a>
impl<'a> Send for LockedWorkingCopy<'a>
impl<'a> !Sync for LockedWorkingCopy<'a>
impl<'a> Unpin for LockedWorkingCopy<'a>
impl<'a> !UnwindSafe for LockedWorkingCopy<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more