Struct jujutsu_lib::working_copy::WorkingCopy [−][src]
pub struct WorkingCopy { /* fields omitted */ }
Implementations
impl WorkingCopy
[src]
impl WorkingCopy
[src]pub fn init(
store: Arc<StoreWrapper>,
working_copy_path: PathBuf,
state_path: PathBuf
) -> WorkingCopy
[src]
store: Arc<StoreWrapper>,
working_copy_path: PathBuf,
state_path: PathBuf
) -> WorkingCopy
pub fn load(
store: Arc<StoreWrapper>,
working_copy_path: PathBuf,
state_path: PathBuf
) -> WorkingCopy
[src]
store: Arc<StoreWrapper>,
working_copy_path: PathBuf,
state_path: PathBuf
) -> WorkingCopy
pub fn current_commit_id(&self) -> CommitId
[src]
pub fn current_commit_id(&self) -> CommitId
[src]The id of the commit that’s currently checked out in the working copy. Note that the View is the source of truth for which commit should be checked out. That should be kept up to date within a Transaction. The WorkingCopy is only updated at the end.
pub fn current_commit(&self) -> Commit
[src]
pub fn current_commit(&self) -> Commit
[src]The commit that’s currently checked out in the working copy. Note that the View is the source of truth for which commit should be checked out. That should be kept up to date within a Transaction. The WorkingCopy is only updated at the end.
pub fn current_tree_id(&self) -> TreeId
[src]
pub fn file_states(&self) -> BTreeMap<FileRepoPath, FileState>
[src]
pub fn check_out(&self, commit: Commit) -> Result<CheckoutStats, CheckoutError>
[src]
pub fn commit(
&self,
settings: &UserSettings,
repo: Arc<ReadonlyRepo>
) -> (Arc<ReadonlyRepo>, Commit)
[src]
&self,
settings: &UserSettings,
repo: Arc<ReadonlyRepo>
) -> (Arc<ReadonlyRepo>, Commit)
Auto Trait Implementations
impl !RefUnwindSafe for WorkingCopy
impl Send for WorkingCopy
impl !Sync for WorkingCopy
impl Unpin for WorkingCopy
impl !UnwindSafe for WorkingCopy
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,