Got basic replication working :)
This commit is contained in:
+2
-4
@@ -7,7 +7,7 @@ use git2::Repository as LibGitRepository;
|
||||
use lazy_static::lazy_static;
|
||||
use parking_lot::Mutex;
|
||||
use regex::Regex;
|
||||
use repository::{GitRepository, GitFileStatus};
|
||||
use repository::{GitFileStatus, GitRepository};
|
||||
use rope::Rope;
|
||||
use smol::io::{AsyncReadExt, AsyncWriteExt};
|
||||
use std::borrow::Cow;
|
||||
@@ -660,9 +660,7 @@ impl FakeFs {
|
||||
state.worktree_statuses.extend(
|
||||
statuses
|
||||
.iter()
|
||||
.map(|(path, content)| {
|
||||
((**path).into(), content.clone())
|
||||
}),
|
||||
.map(|(path, content)| ((**path).into(), content.clone())),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ pub enum GitFileStatus {
|
||||
pub struct RepoPath(PathBuf);
|
||||
|
||||
impl RepoPath {
|
||||
fn new(path: PathBuf) -> Self {
|
||||
pub fn new(path: PathBuf) -> Self {
|
||||
debug_assert!(path.is_relative(), "Repo paths must be relative");
|
||||
|
||||
RepoPath(path)
|
||||
|
||||
Reference in New Issue
Block a user