File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
git-repository/src/remote Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ pub mod to_map {
75
75
use git_features:: progress:: Progress ;
76
76
use git_protocol:: transport:: client:: Transport ;
77
77
78
- /// The error returned by [`Connection::list_refs_to_mapping ()`].
78
+ /// The error returned by [`Connection::list_refs_to_map ()`].
79
79
#[ derive( Debug , thiserror:: Error ) ]
80
80
#[ allow( missing_docs) ]
81
81
pub enum Error {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ pub mod fetch {
31
31
use crate :: bstr:: BString ;
32
32
33
33
/// Information about the relationship between our refspecs, and remote references with their local counterparts.
34
+ #[ derive( Debug , Clone ) ]
34
35
pub struct RefMap {
35
36
/// A mapping between a remote reference and a local tracking branch.
36
37
pub mappings : Vec < Mapping > ,
@@ -39,6 +40,7 @@ pub mod fetch {
39
40
}
40
41
41
42
/// Either an object id that the remote has or the matched remote ref itself.
43
+ #[ derive( Debug , Clone ) ]
42
44
pub enum Source {
43
45
/// An object id, as the matched ref-spec was an object id itself.
44
46
ObjectId ( git_hash:: ObjectId ) ,
@@ -47,6 +49,7 @@ pub mod fetch {
47
49
}
48
50
49
51
/// A mapping between a single remote reference and its advertised objects to a local destination which may or may not exist.
52
+ #[ derive( Debug , Clone ) ]
50
53
pub struct Mapping {
51
54
/// The reference on the remote side, along with information about the objects they point to as advertised by the server.
52
55
pub remote : Source ,
You can’t perform that action at this time.
0 commit comments