(ctx context.Context, o *SubmoduleUpdateOptions)
| 152 | } |
| 153 | |
| 154 | func (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. |
| 164 | func (w *Worktree) Checkout(opts *CheckoutOptions) error { |
no test coverage detected