1- use std:: collections:: HashSet ;
1+ use std:: { borrow :: Cow , collections:: HashSet } ;
22
33use bstr:: { BString , ByteSlice , ByteVec } ;
44use gix_features:: progress:: Progress ;
@@ -11,11 +11,10 @@ use crate::transport::client::async_io::Transport;
1111use crate :: transport:: client:: blocking_io:: Transport ;
1212use crate :: {
1313 fetch:: {
14- self ,
1514 refmap:: { Mapping , Source , SpecIndex } ,
1615 RefMap ,
1716 } ,
18- handshake:: Ref ,
17+ handshake:: { Outcome , Ref } ,
1918} ;
2019
2120/// The error returned by [`RefMap::new()`].
@@ -55,9 +54,6 @@ impl RefMap {
5554 /// Create a new instance by obtaining all references on the remote that have been filtered through our remote's
5655 /// for _fetching_.
5756 ///
58- /// A [context](fetch::Context) is provided to bundle what would be additional parameters,
59- /// and [options](Options) are used to further configure the call.
60- ///
6157 /// * `progress` is used if `ls-refs` is invoked on the remote. Always the case when V2 is used.
6258 /// * `fetch_refspecs` are all explicit refspecs to identify references on the remote that you are interested in.
6359 /// Note that these are copied to [`RefMap::refspecs`] for convenience, as `RefMap::mappings` refer to them by index.
@@ -66,12 +62,10 @@ impl RefMap {
6662 pub async fn new < T > (
6763 mut progress : impl Progress ,
6864 fetch_refspecs : & [ gix_refspec:: RefSpec ] ,
69- fetch:: Context {
70- handshake,
71- transport,
72- user_agent,
73- trace_packetlines,
74- } : fetch:: Context < ' _ , T > ,
65+ handshake : & mut Outcome ,
66+ transport : & mut T ,
67+ user_agent : ( & ' static str , Option < Cow < ' static , str > > ) ,
68+ trace_packetlines : bool ,
7569 Options {
7670 prefix_from_spec_as_filter_on_remote,
7771 extra_refspecs,
0 commit comments