VcsBackend

Trait VcsBackend 

Source
pub trait VcsBackend {
    // Required methods
    fn create_worktree(
        &self,
        repo_path: &Path,
        worktree_path: &Path,
        name: &str,
    ) -> Result<(), Error>;
    fn remove_worktree(
        &self,
        repo_path: &Path,
        worktree_path: &Path,
        name: &str,
    ) -> Result<(), Error>;
    fn list_worktrees(
        &self,
        repo_path: &Path,
        worktree_base: &Path,
    ) -> Result<Vec<WorktreeInfo>, Error>;
}
Expand description

Trait for VCS backends that manage worktrees/workspaces.

Required Methods§

Source

fn create_worktree( &self, repo_path: &Path, worktree_path: &Path, name: &str, ) -> Result<(), Error>

Source

fn remove_worktree( &self, repo_path: &Path, worktree_path: &Path, name: &str, ) -> Result<(), Error>

Source

fn list_worktrees( &self, repo_path: &Path, worktree_base: &Path, ) -> Result<Vec<WorktreeInfo>, Error>

Implementors§