Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2026 Changes in this version + func Exists(path string) (bool, error) + func IsEmpty(dir string) (bool, error) + type AgentDirReplacement struct + Dir string + Project string + Source string + type Central struct + Path string + func Initialize(path string) (*Central, error) + func Open(path string) (*Central, error) + func (c *Central) AddAgentDir(name, dirName, sourcePath string) (destPath string, undo func() error, err error) + func (c *Central) Commit(message string) error + func (c *Central) CommitExists(sha string) (bool, error) + func (c *Central) CommitPaths(message string, paths ...string) error + func (c *Central) HasRemote() (bool, error) + func (c *Central) HeadSHA() (string, error) + func (c *Central) ListProjects() ([]string, error) + func (c *Central) LockMutations() (func() error, error) + func (c *Central) ProjectAgentDirs(name string) ([]string, error) + func (c *Central) ProjectPath(name, dirName string) string + func (c *Central) RecoverReplacements() error + func (c *Central) RemoveProjectStaged(name string) (undo func() error, err error) + func (c *Central) RenameProjectStaged(old, newName string) (undo func() error, err error) + func (c *Central) ScopedDirty(projectName string, dirNames []string) (bool, error) + func (c *Central) Snapshot(commit, projectName, dirName string) (reconcile.Snapshot, []reconcile.Issue, error) + func (c *Central) StageAgentDirReplacements(replacements []AgentDirReplacement) (*ReplacementSet, error) + type ReplacementSet struct + func (s *ReplacementSet) Finish() error + func (s *ReplacementSet) Paths() []string + func (s *ReplacementSet) Rollback() error