pub struct RepoManager { /* private fields */ }Implementations§
Source§impl RepoManager
impl RepoManager
pub fn new( xdg_directories: Arc<XdgDirectories>, file_system: Arc<dyn FileSystemOperations>, git_operations: Arc<dyn GitOperations>, ) -> Self
Sourcepub async fn copy_repo(
&self,
task_id: &str,
repo_root: &Path,
source_commit: Option<&str>,
) -> Result<(PathBuf, String), String>
pub async fn copy_repo( &self, task_id: &str, repo_root: &Path, source_commit: Option<&str>, ) -> Result<(PathBuf, String), String>
Copy repository for a task using the task ID and repository root
Copies git-tracked files, untracked files (not ignored), the .git directory, and the .tsk directory
This captures the complete state of the repository as shown by git status
Returns the path to the copied repository and the branch name
Auto Trait Implementations§
impl Freeze for RepoManager
impl !RefUnwindSafe for RepoManager
impl Send for RepoManager
impl Sync for RepoManager
impl Unpin for RepoManager
impl !UnwindSafe for RepoManager
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