forked from mirrors/jj
working_copy: extract WorkItem
to top-level struct
This commit is contained in:
parent
edc34f0616
commit
515fb02049
1 changed files with 6 additions and 5 deletions
|
@ -383,6 +383,12 @@ pub enum ResetError {
|
||||||
TreeStateError(#[from] TreeStateError),
|
TreeStateError(#[from] TreeStateError),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct WorkItem {
|
||||||
|
dir: RepoPath,
|
||||||
|
disk_dir: PathBuf,
|
||||||
|
git_ignore: Arc<GitIgnoreFile>,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
pub enum TreeStateError {
|
pub enum TreeStateError {
|
||||||
#[error("Reading tree state from {path}: {source}")]
|
#[error("Reading tree state from {path}: {source}")]
|
||||||
|
@ -642,11 +648,6 @@ impl TreeState {
|
||||||
});
|
});
|
||||||
|
|
||||||
let matcher = IntersectionMatcher::new(sparse_matcher.as_ref(), fsmonitor_matcher);
|
let matcher = IntersectionMatcher::new(sparse_matcher.as_ref(), fsmonitor_matcher);
|
||||||
struct WorkItem {
|
|
||||||
dir: RepoPath,
|
|
||||||
disk_dir: PathBuf,
|
|
||||||
git_ignore: Arc<GitIgnoreFile>,
|
|
||||||
}
|
|
||||||
let mut work = vec![WorkItem {
|
let mut work = vec![WorkItem {
|
||||||
dir: RepoPath::root(),
|
dir: RepoPath::root(),
|
||||||
disk_dir: self.working_copy_path.clone(),
|
disk_dir: self.working_copy_path.clone(),
|
||||||
|
|
Loading…
Reference in a new issue