Skip to content

Commit cd88194

Browse files
author
Stephan Dilly
authored
add accessor for internal remote wrapped in RemoteConnection (#677)
1 parent ab986a3 commit cd88194

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/remote.rs

+5
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,11 @@ impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb> {
634634
pub fn default_branch(&self) -> Result<Buf, Error> {
635635
self.remote.default_branch()
636636
}
637+
638+
/// access remote bound to this connection
639+
pub fn remote(&mut self) -> &mut Remote<'repo> {
640+
self.remote
641+
}
637642
}
638643

639644
impl<'repo, 'connection, 'cb> Drop for RemoteConnection<'repo, 'connection, 'cb> {

0 commit comments

Comments
 (0)