Got basic replication working :)
This commit is contained in:
parent
2b80dfa81d
commit
e20eaca595
7 changed files with 256 additions and 41 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue