//! submodule Operation method trait for the module. use gix::hash::ObjectId; use crate::submodule::types::{LinkUrl, SubmoduleList}; /// Operation trait for the submodule module. pub trait SubmoduleOps { /// List submodules. fn submodule_list(&self, tree_id: &ObjectId) -> Result; /// Resolve a submodule link URL. fn submodule_link_url(&self, path: &str, tree_id: &ObjectId) -> Result; /// Get a submodule commit. fn submodule_resolve(&self, path: &str, tree_id: &ObjectId) -> Result; }