Struct jujutsu_lib::working_copy::TreeState
source · pub struct TreeState { /* private fields */ }
Implementations§
source§impl TreeState
impl TreeState
pub fn current_tree_id(&self) -> &TreeId
pub fn file_states(&self) -> &BTreeMap<RepoPath, FileState>
pub fn sparse_patterns(&self) -> &Vec<RepoPath>
pub fn init( store: Arc<Store>, working_copy_path: PathBuf, state_path: PathBuf ) -> TreeState
pub fn load( store: Arc<Store>, working_copy_path: PathBuf, state_path: PathBuf ) -> TreeState
sourcepub fn snapshot(
&mut self,
base_ignores: Arc<GitIgnoreFile>
) -> Result<bool, SnapshotError>
pub fn snapshot( &mut self, base_ignores: Arc<GitIgnoreFile> ) -> Result<bool, SnapshotError>
Look for changes to the working copy. If there are any changes, create a new tree from it.
pub fn check_out( &mut self, new_tree: &Tree ) -> Result<CheckoutStats, CheckoutError>
pub fn set_sparse_patterns( &mut self, sparse_patterns: Vec<RepoPath> ) -> Result<CheckoutStats, CheckoutError>
pub fn reset(&mut self, new_tree: &Tree) -> 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