Struct jj_cli::cli_util::WorkspaceCommandTransaction
source · pub struct WorkspaceCommandTransaction<'a> { /* private fields */ }Implementations§
source§impl WorkspaceCommandTransaction<'_>
impl WorkspaceCommandTransaction<'_>
sourcepub fn base_workspace_helper(&self) -> &WorkspaceCommandHelper
pub fn base_workspace_helper(&self) -> &WorkspaceCommandHelper
Workspace helper that may use the base repo.
pub fn base_repo(&self) -> &Arc<ReadonlyRepo>
pub fn repo(&self) -> &MutableRepo
pub fn mut_repo(&mut self) -> &mut MutableRepo
pub fn set_description(&mut self, description: &str)
pub fn check_out( &mut self, commit: &Commit ) -> Result<Commit, CheckOutCommitError>
pub fn edit(&mut self, commit: &Commit) -> Result<(), EditCommitError>
pub fn run_mergetool( &self, ui: &Ui, tree: &MergedTree, repo_path: &RepoPath ) -> Result<MergedTreeId, CommandError>
pub fn edit_diff( &self, ui: &Ui, left_tree: &MergedTree, right_tree: &MergedTree, instructions: &str ) -> Result<MergedTreeId, CommandError>
pub fn select_diff( &self, ui: &Ui, left_tree: &MergedTree, right_tree: &MergedTree, instructions: &str, interactive: bool, matcher: &dyn Matcher ) -> Result<MergedTreeId, CommandError>
pub fn format_commit_summary(&self, commit: &Commit) -> String
pub fn write_commit_summary( &self, formatter: &mut dyn Formatter, commit: &Commit ) -> Result<()>
pub fn finish(self, ui: &mut Ui) -> Result<(), CommandError>
pub fn into_inner(self) -> Transaction
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WorkspaceCommandTransaction<'a>
impl<'a> !Send for WorkspaceCommandTransaction<'a>
impl<'a> !Sync for WorkspaceCommandTransaction<'a>
impl<'a> Unpin for WorkspaceCommandTransaction<'a>
impl<'a> !UnwindSafe for WorkspaceCommandTransaction<'a>
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