Skip to content
Clone
a06673b
20 lines 519 B Rust
use crate::error::{RepoError, RepoResult};
use crate::features::RepoService;
use super::types::CompareView;
pub async fn compare(
_svc: &RepoService,
actor: uuid::Uuid,
_repo_id: uuid::Uuid,
base: &str,
head: &str,
) -> RepoResult<CompareView> {
let _ = actor;
if base.is_empty() || head.is_empty() {
return Err(RepoError::BadRequest("base and head are required".into()));
}
Err(RepoError::Internal(
"compare requires lib/git rewire (in progress)".into(),
))
}