pub trait IndexManager {
// Required methods
fn stage(&self, paths: &[&str]) -> AppResult<()>;
fn unstage(&self, paths: &[&str]) -> AppResult<()>;
fn staged_entries(&self) -> AppResult<Vec<StatusEntry>>;
}Expand description
Stage and unstage repository paths through the git index.
Required Methods§
Sourcefn stage(&self, paths: &[&str]) -> AppResult<()>
fn stage(&self, paths: &[&str]) -> AppResult<()>
Stages the provided repository-relative paths.
Sourcefn unstage(&self, paths: &[&str]) -> AppResult<()>
fn unstage(&self, paths: &[&str]) -> AppResult<()>
Removes the provided repository-relative paths from the index.
Sourcefn staged_entries(&self) -> AppResult<Vec<StatusEntry>>
fn staged_entries(&self) -> AppResult<Vec<StatusEntry>>
Lists entries that currently differ between HEAD and the index.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".