Struct git_repository::remote::ref_map::Options
source · pub struct Options {
pub prefix_from_spec_as_filter_on_remote: bool,
pub handshake_parameters: Vec<(String, Option<String>)>,
pub extra_refspecs: Vec<RefSpec>,
}
Available on crate features
async-network-client
or blocking-network-client
only.Expand description
For use in Connection::ref_map()
.
Fields§
§prefix_from_spec_as_filter_on_remote: bool
Use a two-component prefix derived from the ref-spec’s source, like refs/heads/
to let the server pre-filter refs
with great potential for savings in traffic and local CPU time. Defaults to true
.
handshake_parameters: Vec<(String, Option<String>)>
Parameters in the form of (name, optional value)
to add to the handshake.
This is useful in case of custom servers.
extra_refspecs: Vec<RefSpec>
A list of refspecs to use as implicit refspecs which won’t be saved or otherwise be part of the remote in question.
This is useful for handling remote.<name>.tagOpt
for example.