mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-21 18:40:40 +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:
@@ -32,10 +32,7 @@ use crate::{
|
||||
git::RepositoryRef,
|
||||
object::{Error, Info, ObjectType},
|
||||
revision::Revision,
|
||||
vcs::{
|
||||
git::{Branch, Rev},
|
||||
Vcs,
|
||||
},
|
||||
vcs::git::{Branch, Rev},
|
||||
};
|
||||
|
||||
/// Result of a directory listing, carries other trees and blobs.
|
||||
@@ -158,7 +155,7 @@ where
|
||||
entries.sort_by(|a, b| a.info.object_type.cmp(&b.info.object_type));
|
||||
|
||||
let last_commit = if path.is_root() {
|
||||
Some(commit::Header::from(repo.get_history(rev).unwrap().first()))
|
||||
Some(commit::Header::from(repo.history(rev).unwrap().first()))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user