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

Method Update

submodule.go:167–169  ·  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

165// submodule should be initialized first calling the Init method or setting in
166// the options SubmoduleUpdateOptions.Init equals true
167func (s *Submodule) Update(o *SubmoduleUpdateOptions) error {
168 return s.UpdateContext(context.Background(), o)
169}
170
171// UpdateContext the registered submodule to match what the superproject
172// expects, the submodule should be initialized first calling the Init method or

Calls 1

UpdateContextMethod · 0.95