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

Method Fetch

repository.go:1185–1187  ·  view source on GitHub ↗

Fetch fetches references along with the objects necessary to complete their histories, from the remote named as FetchOptions.RemoteName. 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

1183// Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are
1184// no changes to be fetched, or an error.
1185func (r *Repository) Fetch(o *FetchOptions) error {
1186 return r.FetchContext(context.Background(), o)
1187}
1188
1189// FetchContext fetches references along with the objects necessary to complete
1190// their histories, from the remote named as FetchOptions.RemoteName.

Callers

nothing calls this directly

Calls 1

FetchContextMethod · 0.95

Tested by

no test coverage detected