Reset the worktree to a specified state.
(opts *ResetOptions)
| 368 | |
| 369 | // Reset the worktree to a specified state. |
| 370 | func (w *Worktree) Reset(opts *ResetOptions) error { |
| 371 | return w.ResetSparsely(opts, nil) |
| 372 | } |
| 373 | |
| 374 | func (w *Worktree) resetIndex(t *object.Tree, dirs []string, files []string) ([]string, error) { |
| 375 | idx, err := w.r.Storer.Index() |