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

Method UpdateContext

submodule.go:308–316  ·  view source on GitHub ↗

UpdateContext updates all the submodules in this list. The provided Context must be non-nil. If the context expires before the operation is complete, an error is returned. The context only affects the transport operations.

(ctx context.Context, o *SubmoduleUpdateOptions)

Source from the content-addressed store, hash-verified

306// operation is complete, an error is returned. The context only affects the
307// transport operations.
308func (s Submodules) UpdateContext(ctx context.Context, o *SubmoduleUpdateOptions) error {
309 for _, sub := range s {
310 if err := sub.UpdateContext(ctx, o); err != nil {
311 return err
312 }
313 }
314
315 return nil
316}
317
318// Status returns the status of the submodules.
319func (s Submodules) Status() (SubmodulesStatus, error) {

Callers 1

UpdateMethod · 0.95

Calls 1

UpdateContextMethod · 0.45

Tested by

no test coverage detected