MCPcopy
hub / github.com/go-git/go-git / FetchContext

Method FetchContext

remote.go:388–391  ·  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

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