Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + var ErrSnapshotExpired = errors.New(...) + var ErrTrackerClosed = errors.New("snapshot tracker closed") + type Tracker struct + func New(gitDir, workTree, statePath string) *Tracker + func (t *Tracker) Close() + func (t *Tracker) DiffTop() (string, error) + func (t *Tracker) Rebind(gitDir, workTree, statePath string) + func (t *Tracker) Redo() (changed []string, ok bool, err error) + func (t *Tracker) Track() (bool, error) + func (t *Tracker) Undo() (changed []string, ok bool, err error)