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

Method Fetch

remote.go:397–399  ·  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

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

Calls 1

FetchContextMethod · 0.95