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

Method Fetch

remote.go:398–400  ·  view source on GitHub ↗

Fetch 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.

(o *FetchOptions)

Source from the content-addressed store, hash-verified

396// Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are
397// no changes to be fetched, or an error.
398func (r *Remote) Fetch(o *FetchOptions) error {
399 return r.FetchContext(context.Background(), o)
400}
401
402func (r *Remote) fetch(ctx context.Context, o *FetchOptions) (sto storer.ReferenceStorer, err error) {
403 if o.RemoteName == "" {

Calls 1

FetchContextMethod · 0.95