History

Merge pull request #1591 from EliahKagan/run-ci/deps-via-worktree

In gix-testtools, use `ignore` and `index` via `gix_worktree`

Sebastian Thiel committed 2 years ago

Commit c485a2b2 parents 7c2af44 f7f24e53 files · +3 −8Browse files

Unified · Split

3 files
  1. Cargo.lock +0 −2
  2. tests/tools/Cargo.toml +0 −3
  3. tests/tools/src/lib.rs +3 −3
Cargo.lock+0−2
@@ -2577,8 +2577,6 @@ dependencies = [ · 2576 unmodified lines
25772577 "fs_extra",
25782578 "gix-discover 0.32.0",
25792579 "gix-fs 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)",
2580− "gix-ignore 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)",
2581− "gix-index 0.33.1",
25822580 "gix-lock 14.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
25832581 "gix-tempfile 14.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
25842582 "gix-worktree 0.34.1",
tests/tools/Cargo.toml+0−3
@@ -27,9 +27,6 @@ xz = ["dep:xz2"] · 26 unmodified lines
2727 [dependencies]
2828 gix-lock = "14.0.0"
2929 gix-discover = "0.32.0"
30−# TODO(ST) remove once `gix-worktree` exports `index`.
31−gix-ignore = "0.11.2"
32−gix-index = "0.33.0"
3330 gix-worktree = "0.34.0"
3431 gix-fs = "0.11"
3532 gix-tempfile = { version = "^14.0.0", default-features = false, features = ["signals"] }
tests/tools/src/lib.rs+3−3
@@ -67,11 +67,11 @@ static EXCLUDE_LUT: Lazy<Mutex<Option<gix_worktree::Stack>>> = Lazy::new(|| { · 66 unmodified lines
6767 let mut buf = Vec::with_capacity(512);
6868 let case = gix_fs::Capabilities::probe(&work_tree)
6969 .ignore_case
70− .then_some(gix_ignore::glob::pattern::Case::Fold)
70+ .then_some(gix_worktree::ignore::glob::pattern::Case::Fold)
7171 .unwrap_or_default();
7272 let state = gix_worktree::stack::State::IgnoreStack(gix_worktree::stack::state::Ignore::new(
7373 Default::default(),
74− gix_ignore::Search::from_git_dir(&gix_dir, None, &mut buf).ok()?,
74+ gix_worktree::ignore::Search::from_git_dir(&gix_dir, None, &mut buf).ok()?,
7575 None,
7676 gix_worktree::stack::state::ignore::Source::WorktreeThenIdMappingIfNotSkipped,
7777 ));
@@ -707,7 +707,7 @@ fn is_excluded(archive: &Path) -> bool { · 629 unmodified lines
707707 cache
708708 .at_path(
709709 relative_path,
710− Some(gix_index::entry::Mode::FILE),
710+ Some(gix_worktree::index::entry::Mode::FILE),
711711 &gix_worktree::object::find::Never,
712712 )
713713 .ok()?