mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
local_working_copy: move DirectoryToVisit closer to new snapshotter type
Some checks are pending
binaries / Build binary artifacts (push) Waiting to run
nix / flake check (push) Waiting to run
build / build (, macos-13) (push) Waiting to run
build / build (, macos-14) (push) Waiting to run
build / build (, ubuntu-latest) (push) Waiting to run
build / build (, windows-latest) (push) Waiting to run
build / build (--all-features, ubuntu-latest) (push) Waiting to run
build / Build jj-lib without Git support (push) Waiting to run
build / Check protos (push) Waiting to run
build / Check formatting (push) Waiting to run
build / Check that MkDocs can build the docs (push) Waiting to run
build / Check that MkDocs can build the docs with latest Python and uv (push) Waiting to run
build / cargo-deny (advisories) (push) Waiting to run
build / cargo-deny (bans licenses sources) (push) Waiting to run
build / Clippy check (push) Waiting to run
Codespell / Codespell (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-latest) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
Some checks are pending
binaries / Build binary artifacts (push) Waiting to run
nix / flake check (push) Waiting to run
build / build (, macos-13) (push) Waiting to run
build / build (, macos-14) (push) Waiting to run
build / build (, ubuntu-latest) (push) Waiting to run
build / build (, windows-latest) (push) Waiting to run
build / build (--all-features, ubuntu-latest) (push) Waiting to run
build / Build jj-lib without Git support (push) Waiting to run
build / Check protos (push) Waiting to run
build / Check formatting (push) Waiting to run
build / Check that MkDocs can build the docs (push) Waiting to run
build / Check that MkDocs can build the docs with latest Python and uv (push) Waiting to run
build / cargo-deny (advisories) (push) Waiting to run
build / cargo-deny (bans licenses sources) (push) Waiting to run
build / Clippy check (push) Waiting to run
Codespell / Codespell (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-latest) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
This commit is contained in:
parent
88c3008724
commit
21a6a244b3
1 changed files with 7 additions and 7 deletions
|
@ -631,13 +631,6 @@ struct FsmonitorMatcher {
|
||||||
watchman_clock: Option<crate::protos::working_copy::WatchmanClock>,
|
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)]
|
#[derive(Debug, Error)]
|
||||||
pub enum TreeStateError {
|
pub enum TreeStateError {
|
||||||
#[error("Reading tree state from {path}")]
|
#[error("Reading tree state from {path}")]
|
||||||
|
@ -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.
|
/// Helper to scan local-disk directories and files in parallel.
|
||||||
struct FileSnapshotter<'a> {
|
struct FileSnapshotter<'a> {
|
||||||
tree_state: &'a TreeState,
|
tree_state: &'a TreeState,
|
||||||
|
|
Loading…
Reference in a new issue