Reset the worktree to a specified state.
(opts *ResetOptions)
| 323 | |
| 324 | // Reset the worktree to a specified state. |
| 325 | func (w *Worktree) Reset(opts *ResetOptions) error { |
| 326 | return w.ResetSparsely(opts, nil) |
| 327 | } |
| 328 | |
| 329 | func (w *Worktree) resetIndex(t *object.Tree, dirs []string) error { |
| 330 | idx, err := w.r.Storer.Index() |