Struct jj_lib::local_working_copy::TreeState
source · pub struct TreeState { /* private fields */ }
Implementations§
source§impl TreeState
impl TreeState
pub fn working_copy_path(&self) -> &Path
pub fn current_tree_id(&self) -> &MergedTreeId
pub fn file_states(&self) -> FileStates<'_>
pub fn sparse_patterns(&self) -> &Vec<RepoPathBuf>
pub fn init( store: Arc<Store>, working_copy_path: PathBuf, state_path: PathBuf ) -> Result<TreeState, TreeStateError>
pub fn load( store: Arc<Store>, working_copy_path: PathBuf, state_path: PathBuf ) -> Result<TreeState, TreeStateError>
sourcepub fn snapshot(
&mut self,
options: SnapshotOptions<'_>
) -> Result<bool, SnapshotError>
pub fn snapshot( &mut self, options: SnapshotOptions<'_> ) -> Result<bool, SnapshotError>
Look for changes to the working copy. If there are any changes, create a new tree from it and return it, and also update the dirstate on disk.
pub fn check_out( &mut self, new_tree: &MergedTree ) -> Result<CheckoutStats, CheckoutError>
pub fn set_sparse_patterns( &mut self, sparse_patterns: Vec<RepoPathBuf> ) -> Result<CheckoutStats, CheckoutError>
pub async fn reset(&mut self, new_tree: &MergedTree) -> Result<(), ResetError>
Auto Trait Implementations§
impl !RefUnwindSafe for TreeState
impl Send for TreeState
impl Sync for TreeState
impl Unpin for TreeState
impl !UnwindSafe for TreeState
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