MCPcopy Create free account
hub / github.com/go-git/go-git / FetchContext

Method FetchContext

remote.go:387–390  ·  view source on GitHub ↗

FetchContext fetches references along with the objects necessary to complete their histories. Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are no changes to be fetched, or an error. The provided Context must be non-nil. If the context expires before the operation is co

(ctx context.Context, o *FetchOptions)

Source from the content-addressed store, hash-verified

385// operation is complete, an error is returned. The context only affects the
386// transport operations.
387func (r *Remote) FetchContext(ctx context.Context, o *FetchOptions) error {
388 _, err := r.fetch(ctx, o)
389 return err
390}
391
392// Fetch fetches references along with the objects necessary to complete their
393// histories.

Callers 5

TestFetchContextMethod · 0.95
FetchMethod · 0.95
TestFetchContextMethod · 0.45
fetchAndCheckoutMethod · 0.45

Calls 1

fetchMethod · 0.95

Tested by 3

TestFetchContextMethod · 0.76
TestFetchContextMethod · 0.36