Skip to content

Commit c485a2b

Browse files
authored
Merge pull request #1591 from EliahKagan/run-ci/deps-via-worktree
In gix-testtools, use `ignore` and `index` via `gix_worktree`
2 parents 7c2af44 + f7f24e5 commit c485a2b

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Cargo.lock

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/tools/Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ xz = ["dep:xz2"]
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
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ static EXCLUDE_LUT: Lazy<Mutex<Option<gix_worktree::Stack>>> = Lazy::new(|| {
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 {
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()?

0 commit comments

Comments
 (0)