summaryrefslogtreecommitdiffstats
path: root/vendor/gix/src/pathspec.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-19 09:26:03 +0000
commit9918693037dce8aa4bb6f08741b6812923486c18 (patch)
tree21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/gix/src/pathspec.rs
parentReleasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff)
downloadrustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz
rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/gix/src/pathspec.rs')
-rw-r--r--vendor/gix/src/pathspec.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/vendor/gix/src/pathspec.rs b/vendor/gix/src/pathspec.rs
index 235a91d76..a56ad1c32 100644
--- a/vendor/gix/src/pathspec.rs
+++ b/vendor/gix/src/pathspec.rs
@@ -1,6 +1,5 @@
//! Pathspec plumbing and abstractions
use gix_macros::momo;
-use gix_odb::FindExt;
pub use gix_pathspec::*;
use crate::{bstr::BStr, AttributeStack, Pathspec, PathspecDetached, Repository};
@@ -122,9 +121,7 @@ impl<'repo> Pathspec<'repo> {
let stack = self.stack.as_mut().expect("initialized in advance");
stack
.set_case(case)
- .at_entry(relative_path, Some(is_dir), |id, buf| {
- self.repo.objects.find_blob(id, buf)
- })
+ .at_entry(relative_path, Some(is_dir), &self.repo.objects)
.map_or(false, |platform| platform.matching_attributes(out))
},
)
@@ -180,7 +177,7 @@ impl PathspecDetached {
let stack = self.stack.as_mut().expect("initialized in advance");
stack
.set_case(case)
- .at_entry(relative_path, Some(is_dir), |id, buf| self.odb.find_blob(id, buf))
+ .at_entry(relative_path, Some(is_dir), &self.odb)
.map_or(false, |platform| platform.matching_attributes(out))
},
)