use crate::option::CommitListOptions;
use crate::types::commit::CommitInfo;
use async_trait::async_trait;
#[async_trait]
pub trait Commit: Send + Sync {
async fn info(
&self,
repo_path: (&str, &str),
sha: Option<&str>,
) -> crate::Result<CommitInfo>;
async fn list(
&self,
repo_path: (&str, &str),
option: Option<CommitListOptions>,
) -> crate::Result<Vec<CommitInfo>>;
}