MCPcopy Index your code
hub / github.com/go-git/go-git / Update

Method Update

submodule.go:233–235  ·  view source on GitHub ↗

Update the registered submodule to match what the superproject expects, the submodule should be initialized first calling the Init method or setting in the options SubmoduleUpdateOptions.Init equals true

(o *SubmoduleUpdateOptions)

Source from the content-addressed store, hash-verified

231// submodule should be initialized first calling the Init method or setting in
232// the options SubmoduleUpdateOptions.Init equals true
233func (s *Submodule) Update(o *SubmoduleUpdateOptions) error {
234 return s.UpdateContext(context.Background(), o)
235}
236
237// UpdateContext the registered submodule to match what the superproject
238// expects, the submodule should be initialized first calling the Init method or

Calls 1

UpdateContextMethod · 0.95