File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
git-repository/src/remote Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1
1
use git_features:: progress:: Progress ;
2
2
use git_protocol:: transport:: client:: Transport ;
3
3
4
- use crate :: remote:: { connection:: HandshakeWithRefs , Connection , Direction } ;
4
+ use crate :: remote:: { connection:: HandshakeWithRefs , fetch , Connection , Direction } ;
5
5
6
6
mod error {
7
7
#[ derive( Debug , thiserror:: Error ) ]
33
33
Ok ( res. refs )
34
34
}
35
35
36
+ /// A mapping showing the objects available in refs matching our ref-specs on the remote side, along with their destination
37
+ /// ref locally, if set and if there are no conflicts.
38
+ #[ git_protocol:: maybe_async:: maybe_async]
39
+ pub async fn ref_mapping ( self ) -> Result < Vec < fetch:: Mapping > , Error > {
40
+ todo ! ( )
41
+ }
42
+
36
43
#[ git_protocol:: maybe_async:: maybe_async]
37
44
async fn fetch_refs ( & mut self ) -> Result < HandshakeWithRefs , Error > {
38
45
let mut credentials_storage;
Original file line number Diff line number Diff line change @@ -25,6 +25,20 @@ pub use errors::find;
25
25
///
26
26
pub mod init;
27
27
28
+ ///
29
+ #[ cfg( any( feature = "async-network-client" , feature = "blocking-network-client" ) ) ]
30
+ pub mod fetch {
31
+ use crate :: bstr:: BString ;
32
+
33
+ /// A mapping between a single remote reference and its advertised objects to a local destination which may or may not exist.
34
+ pub struct Mapping {
35
+ /// The reference on the remote side, along with information about the objects they point to as advertised by the server.
36
+ pub remote : git_protocol:: fetch:: Ref ,
37
+ /// The local tracking reference to update after fetching the object visible via `remote`.
38
+ pub local : Option < BString > ,
39
+ }
40
+ }
41
+
28
42
///
29
43
#[ cfg( any( feature = "async-network-client" , feature = "blocking-network-client" ) ) ]
30
44
pub mod connect;
You can’t perform that action at this time.
0 commit comments