Function git_protocol::fetch::refs::from_v1_refs_received_as_part_of_handshake_and_capabilities[][src]

pub fn from_v1_refs_received_as_part_of_handshake_and_capabilities<'a>(
    in_refs: &mut dyn BufRead,
    capabilities: impl Iterator<Item = Capability<'a>>
) -> Result<Vec<Ref>, Error>
Expand description

Parse refs from the return stream of the handshake as well as the server capabilities, also received as part of the handshake. Together they form a complete set of refs.

Note

Symbolic refs are shoe-horned into server capabilities whereas refs (without symbolic ones) are sent automatically as part of the handshake. Both symbolic and peeled refs need to be combined to fit into the Ref type provided here.