(o *SubmoduleUpdateOptions)
| 149 | } |
| 150 | |
| 151 | func (w *Worktree) updateSubmodules(o *SubmoduleUpdateOptions) error { |
| 152 | s, err := w.Submodules() |
| 153 | if err != nil { |
| 154 | return err |
| 155 | } |
| 156 | o.Init = true |
| 157 | return s.Update(o) |
| 158 | } |
| 159 | |
| 160 | // Checkout switch branches or restore working tree files. |
| 161 | func (w *Worktree) Checkout(opts *CheckoutOptions) error { |
no test coverage detected