pub trait VersionControl {
// Required methods
fn add(&self, file: &str) -> Result<ExitStatus>;
fn remove(&self, file: &str) -> Result<ExitStatus>;
fn commit(&self, message: &str) -> Result<ExitStatus>;
fn cmd_dispatch(&self, args: Vec<&str>) -> Result<ExitStatus>;
}Expand description
Version control trait. Note that add and remove will not commit the
operation. Hence commit has to be called separatly.