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 crate::commit::types::Commit;
use crate::log::types::{CommitGraph, LogList, LogOptions};
pub trait LogOps {
fn log_list(&self, opts: &LogOptions) -> Result<LogList, crate::Error>;
fn log_commits_between(
&self,
after: &str,
before: &str,
limit: u64,
) -> Result<LogList, crate::Error>;
fn log_graph(&self, opts: &LogOptions) -> Result<CommitGraph, crate::Error>;
fn log_last_commit(&self, branch_name: String) -> Result<Commit, crate::Error>;
}