Available on crate feature
fetch
only.Expand description
A modules with primitives to perform negotiation as part of a fetch operation.
The functions provided are called in a certain order:
mark_complete_and_common_ref()
- initialize thenegotiator
with all state known on the remote.add_wants()
is called if the call at 1) returnedAction::MustNegotiate
.one_round()
is called for each negotiation round, providing information if the negotiation is done.
Modules§
Structs§
- Key information about each round in the pack-negotiation, as produced by
one_round()
.
Enums§
- Determines what should be done after preparing the commit-graph for negotiation.
- The error returned during
one_round()
ormark_complete_and_common_ref()
.
Functions§
- Add all ‘wants’ to
arguments
once it’s known negotiation is necessary. - Create a predicate that checks if a refspec mapping should be ignored.
- This function is modeled after the similarly named one in the git codebase to mark known refs in a commit-graph.
- Prepare to negotiate a single round in the process of letting the remote know what we have, and have in common.