Skip to main content

SubmoduleEditor

Trait SubmoduleEditor 

Source
pub trait SubmoduleEditor {
    // Required methods
    fn root(&self) -> &Path;
    fn sync_to_parent(&self, name: &str) -> Result<(), Box<dyn Error>>;
    fn sync_all_to_parent(&self) -> Result<(), Box<dyn Error>>;
    fn retire_submodule(&self, name: &str) -> Result<(), Box<dyn Error>>;
    fn status(&self) -> Result<Vec<HealthIssue>, Box<dyn Error>>;
}

Required Methods§

Source

fn root(&self) -> &Path

Source

fn sync_to_parent(&self, name: &str) -> Result<(), Box<dyn Error>>

核心贡献:子模块 → 父仓库的指针同步

Source

fn sync_all_to_parent(&self) -> Result<(), Box<dyn Error>>

Source

fn retire_submodule(&self, name: &str) -> Result<(), Box<dyn Error>>

半贡献:自动反注册子模块

Source

fn status(&self) -> Result<Vec<HealthIssue>, Box<dyn Error>>

核心贡献:三路 commit 比对 + 7 种状态分类

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§