Skip to main content

Module fetch_request

Module fetch_request 

Source
Expand description

Explicit fetch refspec resolution.

Structs§

FetchInvocation
Remote name and explicit refspec strings after parsing grit fetch positionals.
FetchRefspecInput
Inputs for FetchRefspecPlan::resolve.
FetchRemoteAdvertisement
Advertised remote state used while resolving fetch refspecs.
ResolvedFetchRef
One ref to fetch after resolving explicit refspecs.

Enums§

FetchHeadPolicy
Whether a fetched ref is written to FETCH_HEAD.
FetchRefspecError
Errors while resolving fetch refspecs before transfer.
FetchRefspecPlan
Outcome of FetchRefspecPlan::resolve.
FetchRefspecSourceKind
How an explicit fetch refspec source side was resolved against advertised refs.

Functions§

configured_remote_for_fetch
The remote grit fetch uses when none is named: branch.<branch>.remote, else DEFAULT_REMOTE.
configured_remote_for_pull
The remote grit pull uses when none is named: branch.<branch>.remote, else DEFAULT_REMOTE.
refname_match_fetch_dwim
Score for refname_match_fetch_dwim (higher = preferred).
resolve_fetch_invocation
Classify grit fetch [<remote>] [<refspec>…] positionals (no refspec parsing).
resolve_pull_invocation
Classify grit pull [<remote>] [<refspec>…] positionals.
resolve_remote_argument
Resolve the repository argument of fetch, pull, or a ref listing into a Remote.