mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-16 00:10:35 +08:00
radicle-surf: refactor the design: part 3
- Detect renames in Diff by default. - Remove Vcs trait. - Move `history()` to be a regular method of RepositoryRef. - Update design doc. Signed-off-by: Han Xu <keepsimple@gmail.com>
This commit is contained in:
@@ -30,10 +30,7 @@ use crate::{
|
||||
file_system,
|
||||
person::Person,
|
||||
revision::Revision,
|
||||
vcs::{
|
||||
git::{self, BranchName, RepositoryRef, Rev},
|
||||
Vcs,
|
||||
},
|
||||
vcs::git::{self, BranchName, RepositoryRef, Rev},
|
||||
};
|
||||
|
||||
use radicle_git_ext::Oid;
|
||||
@@ -244,7 +241,7 @@ where
|
||||
};
|
||||
|
||||
let stats = repo.get_stats(&rev)?;
|
||||
let headers = repo.get_history(rev)?.iter().map(Header::from).collect();
|
||||
let headers = repo.history(rev)?.iter().map(Header::from).collect();
|
||||
|
||||
Ok(Commits { headers, stats })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user