030e59e
zhenyi
refactor(lib): migrate storage and security tier to central lib/config (auth, cache, db, email, jwt, payment, queue, rate_limit, storage)
030e59e
use gix::hash::ObjectId;
use crate::submodule::types::{LinkUrl, SubmoduleList};
pub trait SubmoduleOps {
fn submodule_list(&self, tree_id: &ObjectId) -> Result<SubmoduleList, crate::Error>;
fn submodule_link_url(&self, path: &str, tree_id: &ObjectId) -> Result<LinkUrl, crate::Error>;
fn submodule_resolve(&self, path: &str, tree_id: &ObjectId) -> Result<ObjectId, crate::Error>;
}