Function gix_protocol::ls_refs

source ·
pub fn ls_refs(
    transport: impl Transport,
    capabilities: &Capabilities,
    prepare_ls_refs: impl FnOnce(&Capabilities, &mut Vec<BString>, &mut Vec<(&str, Option<Cow<'static, str>>)>) -> Result<Action>,
    progress: &mut impl Progress,
    trace: bool
) -> Result<Vec<Ref>, Error>
Available on crate features blocking-client or async-client only.
Expand description

Invoke an ls-refs V2 command on transport, which requires a prior handshake that yielded server capabilities. prepare_ls_refs(capabilities, arguments, features) can be used to alter the ls-refs. progress is used to provide feedback. Note that prepare_ls_refs() is expected to add the (agent, Some(name)) to the list of features. If trace is true, all packetlines received or sent will be passed to the facilities of the gix-trace crate.