pub fn refs(
    transport: impl Transport,
    protocol_version: Protocol,
    capabilities: &Capabilities,
    prepare_ls_refs: impl FnMut(&Capabilities, &mut Vec<BString>, &mut Vec<(&str, Option<&str>)>) -> Result<LsRefsAction>,
    progress: &mut impl Progress
) -> Result<Vec<Ref>, Error>
Available on crate features blocking-client or async-client only.
Expand description

Invoke an ls-refs command on transport (assuming protocol_version 2 or panic), which requires a prior handshake that yielded server capabilities. prepare_ls_refs(arguments, features) can be used to alter the ls-refs. progress is used to provide feedback.