Expand description
Explicit fetch refspec resolution.
Structs§
- Fetch
Invocation - Remote name and explicit refspec strings after parsing
grit fetchpositionals. - Fetch
Refspec Input - Inputs for
FetchRefspecPlan::resolve. - Fetch
Remote Advertisement - Advertised remote state used while resolving fetch refspecs.
- Resolved
Fetch Ref - One ref to fetch after resolving explicit refspecs.
Enums§
- Fetch
Head Policy - Whether a fetched ref is written to
FETCH_HEAD. - Fetch
Refspec Error - Errors while resolving fetch refspecs before transfer.
- Fetch
Refspec Plan - Outcome of
FetchRefspecPlan::resolve. - Fetch
Refspec Source Kind - How an explicit fetch refspec source side was resolved against advertised refs.
Functions§
- configured_
remote_ for_ fetch - The remote
grit fetchuses when none is named:branch.<branch>.remote, elseDEFAULT_REMOTE. - configured_
remote_ for_ pull - The remote
grit pulluses when none is named:branch.<branch>.remote, elseDEFAULT_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.