Skip to content

Commit

Permalink
local_working_copy: move DirectoryToVisit closer to new snapshotter type
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Dec 3, 2024
1 parent 1db4234 commit b33a3ab
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/src/local_working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,13 +631,6 @@ struct FsmonitorMatcher {
watchman_clock: Option<crate::protos::working_copy::WatchmanClock>,
}

struct DirectoryToVisit<'a> {
dir: RepoPathBuf,
disk_dir: PathBuf,
git_ignore: Arc<GitIgnoreFile>,
file_states: FileStates<'a>,
}

#[derive(Debug, Error)]
pub enum TreeStateError {
#[error("Reading tree state from {path}")]
Expand Down Expand Up @@ -1023,6 +1016,13 @@ impl TreeState {
}
}

struct DirectoryToVisit<'a> {
dir: RepoPathBuf,
disk_dir: PathBuf,
git_ignore: Arc<GitIgnoreFile>,
file_states: FileStates<'a>,
}

/// Helper to scan local-disk directories and files in parallel.
struct FileSnapshotter<'a> {
tree_state: &'a TreeState,
Expand Down

0 comments on commit b33a3ab

Please sign in to comment.