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

Method updateSubmodules

worktree.go:154–161  ·  view source on GitHub ↗
(ctx context.Context, o *SubmoduleUpdateOptions)

Source from the content-addressed store, hash-verified

152}
153
154func (w *Worktree) updateSubmodules(ctx context.Context, o *SubmoduleUpdateOptions) error {
155 s, err := w.Submodules()
156 if err != nil {
157 return err
158 }
159 o.Init = true
160 return s.UpdateContext(ctx, o)
161}
162
163// Checkout switch branches or restore working tree files.
164func (w *Worktree) Checkout(opts *CheckoutOptions) error {

Callers 2

PullContextMethod · 0.95
cloneMethod · 0.80

Calls 2

SubmodulesMethod · 0.95
UpdateContextMethod · 0.45

Tested by

no test coverage detected