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)
| 386 | // operation is complete, an error is returned. The context only affects the |
| 387 | // transport operations. |
| 388 | func (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. |