File tree Expand file tree Collapse file tree 5 files changed +5
-18
lines changed
gix-worktree-stream/tests Expand file tree Collapse file tree 5 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,6 @@ mod from_tree {
303
303
}
304
304
305
305
fn noop_pipeline ( ) -> gix_filter:: Pipeline {
306
- gix_filter:: Pipeline :: new ( & Default :: default ( ) , Default :: default ( ) , Default :: default ( ) )
306
+ gix_filter:: Pipeline :: new ( Default :: default ( ) , Default :: default ( ) )
307
307
}
308
308
}
Original file line number Diff line number Diff line change @@ -261,7 +261,6 @@ mod from_tree {
261
261
262
262
fn mutating_pipeline ( driver : bool ) -> gix_filter:: Pipeline {
263
263
gix_filter:: Pipeline :: new (
264
- & Default :: default ( ) ,
265
264
Default :: default ( ) ,
266
265
gix_filter:: pipeline:: Options {
267
266
drivers : if driver { vec ! [ driver_with_process( ) ] } else { vec ! [ ] } ,
Original file line number Diff line number Diff line change @@ -196,12 +196,8 @@ impl Cache {
196
196
) ?;
197
197
let capabilities = self . fs_capabilities ( ) ?;
198
198
let filters = {
199
- let collection = Default :: default ( ) ;
200
- let mut filters = gix_filter:: Pipeline :: new (
201
- & collection,
202
- repo. command_context ( ) ?,
203
- crate :: filter:: Pipeline :: options ( repo) ?,
204
- ) ;
199
+ let mut filters =
200
+ gix_filter:: Pipeline :: new ( repo. command_context ( ) ?, crate :: filter:: Pipeline :: options ( repo) ?) ;
205
201
if let Ok ( mut head) = repo. head ( ) {
206
202
let ctx = filters. driver_context_mut ( ) ;
207
203
ctx. ref_name = head. referent_name ( ) . map ( |name| name. as_bstr ( ) . to_owned ( ) ) ;
Original file line number Diff line number Diff line change @@ -113,11 +113,7 @@ impl<'repo> Pipeline<'repo> {
113
113
/// Create a new instance by extracting all necessary information and configuration from a `repo` along with `cache` for accessing
114
114
/// attributes. The `index` is used for some filters which may access it under very specific circumstances.
115
115
pub fn new ( repo : & ' repo Repository , cache : gix_worktree:: Stack ) -> Result < Self , pipeline:: options:: Error > {
116
- let pipeline = gix_filter:: Pipeline :: new (
117
- cache. attributes_collection ( ) ,
118
- repo. command_context ( ) ?,
119
- Self :: options ( repo) ?,
120
- ) ;
116
+ let pipeline = gix_filter:: Pipeline :: new ( repo. command_context ( ) ?, Self :: options ( repo) ?) ;
121
117
Ok ( Pipeline {
122
118
inner : pipeline,
123
119
cache,
Original file line number Diff line number Diff line change @@ -79,11 +79,7 @@ impl crate::Repository {
79
79
let mut cache = self
80
80
. attributes_only ( & index, gix_worktree:: stack:: state:: attributes:: Source :: IdMapping ) ?
81
81
. detach ( ) ;
82
- let pipeline = gix_filter:: Pipeline :: new (
83
- cache. attributes_collection ( ) ,
84
- self . command_context ( ) ?,
85
- crate :: filter:: Pipeline :: options ( self ) ?,
86
- ) ;
82
+ let pipeline = gix_filter:: Pipeline :: new ( repo. command_context ( ) ?, crate :: filter:: Pipeline :: options ( self ) ?) ;
87
83
let objects = self . objects . clone ( ) . into_arc ( ) . expect ( "TBD error handling" ) ;
88
84
let stream = gix_worktree_stream:: from_tree (
89
85
id,
You can’t perform that action at this time.
0 commit comments