gix_status::index_as_worktree::traits

Trait SubmoduleStatus

source
pub trait SubmoduleStatus {
    type Output;
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn status(
        &mut self,
        entry: &Entry,
        rela_path: &BStr,
    ) -> Result<Option<Self::Output>, Self::Error>;
}
Expand description

Determine the status of a submodule, which always indicates that it changed if present.

Required Associated Types§

source

type Output

The status result, describing in which way the submodule changed.

source

type Error: Error + Send + Sync + 'static

A custom error that may occur while computing the submodule status.

Required Methods§

source

fn status( &mut self, entry: &Entry, rela_path: &BStr, ) -> Result<Option<Self::Output>, Self::Error>

Compute the status of the submodule at entry and rela_path, or return None if no change was detected.

Implementors§