@@ -25,7 +25,6 @@ pub(crate) mod function {
25
25
26
26
use gix:: {
27
27
bstr:: { BStr , BString } ,
28
- odb:: FindExt ,
29
28
repository:: IndexPersistedOrInMemory ,
30
29
Repository ,
31
30
} ;
@@ -133,27 +132,25 @@ pub(crate) mod function {
133
132
. and_then ( |( attrs, cache) | {
134
133
// If the user wants to see assigned attributes, we always have to match.
135
134
attributes. is_some ( ) . then ( || {
136
- cache
137
- . at_entry ( entry. path ( & index) , None , |id, buf| repo. objects . find_blob ( id, buf) )
138
- . map ( |entry| {
139
- let is_excluded = entry. is_excluded ( ) ;
140
- stats. excluded += usize:: from ( is_excluded) ;
141
- let attributes: Vec < _ > = {
142
- last_match = Some ( entry. matching_attributes ( attrs) ) ;
143
- attrs. iter ( ) . map ( |m| m. assignment . to_owned ( ) ) . collect ( )
144
- } ;
145
- stats. with_attributes += usize:: from ( !attributes. is_empty ( ) ) ;
146
- stats. max_attributes_per_path = stats. max_attributes_per_path . max ( attributes. len ( ) ) ;
147
- if let Some ( attrs) = repo_attrs. as_mut ( ) {
148
- attributes. iter ( ) . for_each ( |attr| {
149
- attrs. insert ( attr. clone ( ) ) ;
150
- } ) ;
151
- }
152
- Attrs {
153
- is_excluded,
154
- attributes,
155
- }
156
- } )
135
+ cache. at_entry ( entry. path ( & index) , None ) . map ( |entry| {
136
+ let is_excluded = entry. is_excluded ( ) ;
137
+ stats. excluded += usize:: from ( is_excluded) ;
138
+ let attributes: Vec < _ > = {
139
+ last_match = Some ( entry. matching_attributes ( attrs) ) ;
140
+ attrs. iter ( ) . map ( |m| m. assignment . to_owned ( ) ) . collect ( )
141
+ } ;
142
+ stats. with_attributes += usize:: from ( !attributes. is_empty ( ) ) ;
143
+ stats. max_attributes_per_path = stats. max_attributes_per_path . max ( attributes. len ( ) ) ;
144
+ if let Some ( attrs) = repo_attrs. as_mut ( ) {
145
+ attributes. iter ( ) . for_each ( |attr| {
146
+ attrs. insert ( attr. clone ( ) ) ;
147
+ } ) ;
148
+ }
149
+ Attrs {
150
+ is_excluded,
151
+ attributes,
152
+ }
153
+ } )
157
154
} )
158
155
} )
159
156
. transpose ( ) ?;
@@ -173,7 +170,7 @@ pub(crate) mod function {
173
170
}
174
171
// The user doesn't want attributes, so we set the cache position on demand only
175
172
None => cache
176
- . at_entry ( rela_path, Some ( is_dir) , |id , buf| repo . objects . find_blob ( id , buf ) )
173
+ . at_entry ( rela_path, Some ( is_dir) )
177
174
. ok ( )
178
175
. map ( |platform| platform. matching_attributes ( out) )
179
176
. unwrap_or_default ( ) ,
@@ -251,7 +248,7 @@ pub(crate) mod function {
251
248
) -> anyhow:: Result < (
252
249
gix:: pathspec:: Search ,
253
250
IndexPersistedOrInMemory ,
254
- Option < ( gix:: attrs:: search:: Outcome , gix:: worktree :: Stack ) > ,
251
+ Option < ( gix:: attrs:: search:: Outcome , gix:: AttributeStack < ' _ > ) > ,
255
252
) > {
256
253
let index = repo. index_or_load_from_head ( ) ?;
257
254
let pathspec = repo. pathspec (
0 commit comments