mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-21 18:40:40 +08:00
Remove RepositoryRef type and simply use &Repository.
Signed-off-by: Han Xu <keepsimple@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ use serde::{ser, Serialize, Serializer};
|
||||
|
||||
use crate::{
|
||||
file_system::{Directory, Path},
|
||||
git::{Error, RepositoryRef},
|
||||
git::{Error, Repository},
|
||||
};
|
||||
|
||||
pub mod git;
|
||||
@@ -296,7 +296,7 @@ impl Diff {
|
||||
// TODO: Direction of comparison is not obvious with this signature.
|
||||
// For now using conventional approach with the right being "newer".
|
||||
#[allow(clippy::self_named_constructors)]
|
||||
pub fn diff(left: Directory, right: Directory, repo: RepositoryRef) -> Result<Self, Error> {
|
||||
pub fn diff(left: Directory, right: Directory, repo: Repository) -> Result<Self, Error> {
|
||||
// TODO: Some of the deleted files may actually be moved (renamed) to one of the
|
||||
// created files. Finding out which of the deleted files were deleted
|
||||
// and which were moved will probably require performing some variant of
|
||||
|
||||
Reference in New Issue
Block a user