@@ -20,6 +20,8 @@ pub struct PrepareFetch {
20
20
repo : Option < crate :: Repository > ,
21
21
/// The name of the remote, which defaults to `origin` if not overridden.
22
22
remote_name : Option < BString > ,
23
+ /// Additional config `values` that are applied in-memory before starting the fetch process.
24
+ config_overrides : Vec < BString > ,
23
25
/// A function to configure a remote prior to fetching a pack.
24
26
configure_remote : Option < ConfigureRemoteFn > ,
25
27
/// A function to configure a connection before using it.
@@ -126,6 +128,7 @@ impl PrepareFetch {
126
128
#[ cfg( any( feature = "async-network-client" , feature = "blocking-network-client" ) ) ]
127
129
fetch_options : Default :: default ( ) ,
128
130
repo : Some ( repo) ,
131
+ config_overrides : Vec :: new ( ) ,
129
132
remote_name : None ,
130
133
configure_remote : None ,
131
134
#[ cfg( any( feature = "async-network-client" , feature = "blocking-network-client" ) ) ]
@@ -144,8 +147,6 @@ pub struct PrepareCheckout {
144
147
pub ( self ) repo : Option < crate :: Repository > ,
145
148
}
146
149
147
- mod access;
148
-
149
150
// This module encapsulates functionality that works with both feature toggles. Can be combined with `fetch`
150
151
// once async and clone are a thing.
151
152
#[ cfg( any( feature = "async-network-client" , feature = "blocking-network-client" ) ) ]
@@ -181,6 +182,8 @@ mod access_feat {
181
182
#[ cfg( any( feature = "async-network-client-async-std" , feature = "blocking-network-client" ) ) ]
182
183
pub mod fetch;
183
184
185
+ mod access;
186
+
184
187
///
185
188
#[ cfg( feature = "worktree-mutation" ) ]
186
189
pub mod checkout;
0 commit comments