1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::Remote;
pub(crate) struct HandshakeWithRefs {
#[allow(dead_code)]
outcome: git_protocol::fetch::handshake::Outcome,
refs: Vec<git_protocol::fetch::Ref>,
}
pub struct Connection<'a, 'repo, T, P> {
pub(crate) remote: &'a Remote<'repo>,
pub(crate) transport: T,
pub(crate) progress: P,
}
mod access {
use crate::remote::Connection;
use crate::Remote;
impl<'a, 'repo, T, P> Connection<'a, 'repo, T, P> {
pub fn remote(&self) -> &Remote<'repo> {
self.remote
}
}
}
mod list_refs;