Skip to content

Commit 979ef7b

Browse files
committed
adjust to changes in git-refspec (#450)
1 parent 85c49ec commit 979ef7b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

git-repository/src/remote/connection/list_refs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ pub mod to_map {
7575
use git_features::progress::Progress;
7676
use git_protocol::transport::client::Transport;
7777

78-
/// The error returned by [`Connection::list_refs_to_mapping()`].
78+
/// The error returned by [`Connection::list_refs_to_map()`].
7979
#[derive(Debug, thiserror::Error)]
8080
#[allow(missing_docs)]
8181
pub enum Error {

git-repository/src/remote/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ pub mod fetch {
3131
use crate::bstr::BString;
3232

3333
/// Information about the relationship between our refspecs, and remote references with their local counterparts.
34+
#[derive(Debug, Clone)]
3435
pub struct RefMap {
3536
/// A mapping between a remote reference and a local tracking branch.
3637
pub mappings: Vec<Mapping>,
@@ -39,6 +40,7 @@ pub mod fetch {
3940
}
4041

4142
/// Either an object id that the remote has or the matched remote ref itself.
43+
#[derive(Debug, Clone)]
4244
pub enum Source {
4345
/// An object id, as the matched ref-spec was an object id itself.
4446
ObjectId(git_hash::ObjectId),
@@ -47,6 +49,7 @@ pub mod fetch {
4749
}
4850

4951
/// 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)]
5053
pub struct Mapping {
5154
/// The reference on the remote side, along with information about the objects they point to as advertised by the server.
5255
pub remote: Source,

0 commit comments

Comments
 (0)