Skip to main content

IndexManager

Trait IndexManager 

Source
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§

Source

fn stage(&self, paths: &[&str]) -> AppResult<()>

Stages the provided repository-relative paths.

Source

fn unstage(&self, paths: &[&str]) -> AppResult<()>

Removes the provided repository-relative paths from the index.

Source

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".

Implementors§