MCPcopy
hub / github.com/go-git/go-git / UpdateContext

Method UpdateContext

submodule.go:374–382  ·  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

372// operation is complete, an error is returned. The context only affects the
373// transport operations.
374func (s Submodules) UpdateContext(ctx context.Context, o *SubmoduleUpdateOptions) error {
375 for _, sub := range s {
376 if err := sub.UpdateContext(ctx, o); err != nil {
377 return err
378 }
379 }
380
381 return nil
382}
383
384// Status returns the status of the submodules.
385func (s Submodules) Status() (SubmodulesStatus, error) {

Callers 1

UpdateMethod · 0.95

Calls 1

UpdateContextMethod · 0.45

Tested by

no test coverage detected