Struct git_protocol::fetch::Arguments [−][src]
pub struct Arguments { /* fields omitted */ }
Expand description
The arguments passed to a server command.
Implementations
Return true if ref filters is supported.
Return true if shallow refs are supported.
This is relevant for partial clones when using --depth X
.
Return true if the ‘deepen’ capability is supported.
This is relevant for partial clones when using --depth X
and retrieving additional history.
Return true if the ‘deepen_since’ capability is supported.
This is relevant for partial clones when using --depth X
and retrieving additional history
based on a date beyond which all history should be present.
Return true if the ‘deepen_not’ capability is supported.
This is relevant for partial clones when using --depth X
.
Return true if the ‘deepen_relative’ capability is supported.
This is relevant for partial clones when using --depth X
.
Return true if the ‘ref-in-want’ capability is supported.
This can be used to bypass ‘ls-refs’ entirely in protocol v2.
Add the given id
pointing to a commit to the ‘want’ list.
As such it should be included in the server response as it’s not present on the client.
Add the given ref to the ‘want-ref’ list.
The server should respond with a corresponding ‘wanted-refs’ section if it will include the wanted ref in the packfile response.
Add the given id
pointing to a commit to the ‘have’ list.
As such it should not be included in the server response as it’s already present on the client.
Add the given id
pointing to a commit to the ‘shallow’ list.
Deepen the commit history to include all commits from now to seconds_since_unix_epoch
.
Deepen the commit history in a relative instead of absolute fashion.
Do not include commits reachable by the given ref_path
when deepening the history.