Skip to main content

AmendGit

Trait AmendGit 

Source
pub trait AmendGit:
    RecoveryGit
    + RemovalGit
    + ObservationGit {
    // Required methods
    fn relationship(
        &self,
        repository: &Repository,
        participant: &Participant,
        control: &Control,
    ) -> impl Future<Output = Result<Relationship, Problem>> + Send;
    fn repair(
        &self,
        repository: &Repository,
        participant: &Participant,
        control: &Control,
    ) -> impl Future<Output = Result<(), Problem>> + Send;
    fn move_worktree(
        &self,
        repository: &Repository,
        participant: &Participant,
        destination: &Path,
        control: &Control,
    ) -> impl Future<Output = Result<(), Problem>> + Send;
}
Expand description

Git operations required to add, move and reconcile participants.

Required Methods§

Source

fn relationship( &self, repository: &Repository, participant: &Participant, control: &Control, ) -> impl Future<Output = Result<Relationship, Problem>> + Send

Locate the registered participant and determine whether its links need repair.

Source

fn repair( &self, repository: &Repository, participant: &Participant, control: &Control, ) -> impl Future<Output = Result<(), Problem>> + Send

Repair the relationship for the verified participant.

Source

fn move_worktree( &self, repository: &Repository, participant: &Participant, destination: &Path, control: &Control, ) -> impl Future<Output = Result<(), Problem>> + Send

Ask Git to move the participant worktree to its destination.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§