Versions in this module Expand all Collapse all v0 v0.1.0 Aug 14, 2026 Changes in this version + const BackupPathPrefix + const StagePathPrefix + func CopyTree(source, destination string) error + func InspectTree(root string) (Snapshot, []Issue, error) + func SortIssues(issues []Issue) + func StageSnapshot(destinationRoot string, snapshot Snapshot) (string, error) + func TreesEqual(left, right string) (bool, error) + type Change string + const ChangeAdded + const ChangeDeleted + const ChangeModified + const ChangeNone + type ConflictKind string + const ConflictKeepBoth + const ConflictSiblingSuffix + const ConflictText + type Entry struct + Data []byte + Executable bool + Kind EntryKind + type EntryKind string + const KindFile + const KindSymlink + type FileResult struct + Base *Entry + Central *Entry + CentralChange Change + Path string + Project *Entry + ProjectChange Change + State SyncState + type Issue struct + Kind IssueKind + Message string + Path string + type IssueKind string + const IssueBaseUnreachable + const IssueCentralDirty + const IssueCentralMissing + const IssueConflictMarkers + const IssueConflictSibling + const IssueCopyInvalid + const IssueCopyMissing + const IssueInspectionFailed + const IssueUnsupportedObject + type MergeConflict struct + Kind ConflictKind + Path string + SiblingPath string + type MergeResult struct + Conflicts []MergeConflict + Snapshot Snapshot + func MergeFiles(files []FileResult) (MergeResult, error) + func MergeSnapshots(project, central, base Snapshot) (MergeResult, error) + type Result struct + BaseStale bool + Files []FileResult + Issues []Issue + State SyncState + func Classify(project, central, base Snapshot, issues []Issue) Result + type Snapshot map[string]Entry + type SyncState string + const StateCentralAhead + const StateDiverged + const StateInSync + const StateProjectAhead + func Rollup(states []SyncState) SyncState + type TreeReplacement struct + Destination string + Source string