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