Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + func FormatDiff(diff *SnapshotDiff, snapshotName string) string + func FormatList(snapshots []*WorkspaceSnapshot) string + type FileState struct + Content []byte + Hash string + ModTime time.Time + Mode os.FileMode + Path string + type SnapshotDiff struct + Added []string + Deleted []string + Modified []string + Unchanged int + type SnapshotStore struct + Dir string + MaxSnapshots int + func NewSnapshotStore(dir string) *SnapshotStore + func (s *SnapshotStore) Capture(projectDir, name, description string) (*WorkspaceSnapshot, error) + func (s *SnapshotStore) Delete(id string) error + func (s *SnapshotStore) Diff(snapshotID string, projectDir string) (*SnapshotDiff, error) + func (s *SnapshotStore) Get(id string) (*WorkspaceSnapshot, error) + func (s *SnapshotStore) List() ([]*WorkspaceSnapshot, error) + func (s *SnapshotStore) Prune() error + func (s *SnapshotStore) Restore(snapshotID string, projectDir string) error + func (s *SnapshotStore) Save(snapshot *WorkspaceSnapshot) error + type WorkspaceSnapshot struct + CreatedAt time.Time + Description string + FileCount int + Files map[string]FileState + GitBranch string + GitCommit string + ID string + Name string + Size int64 v0.1.0 May 12, 2026 Changes in this version + type FileDiff struct + Additions int + Deletions int + File string + Status string + type Patch struct + Files []string + Hash string + Message string + Timestamp time.Time + type Tracker struct + func New(projectDir string) *Tracker + func (t *Tracker) Cleanup(maxAge time.Duration) error + func (t *Tracker) Diff(from, to string) ([]FileDiff, error) + func (t *Tracker) History(limit int) ([]Patch, error) + func (t *Tracker) Init() error + func (t *Tracker) Restore(hash string) error + func (t *Tracker) Track(message string) (string, error)