Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileChange ¶
FileChange represents a single file changed in the snapshot.
func (FileChange) StatusSymbol ¶
func (f FileChange) StatusSymbol() string
StatusSymbol returns a human-readable symbol for the file change status.
type SnapshotOption ¶
type SnapshotOption func(*snapshotConfig)
SnapshotOption configures Snapshot behavior.
type SnapshotResult ¶
type SnapshotResult struct {
Commit string
Ref string
Branch string
Files []FileChange
}
SnapshotResult holds the output of a successful snapshot operation.
func Snapshot ¶
func Snapshot(dir string, preflightID uuid.UUID, opts ...SnapshotOption) (*SnapshotResult, error)
Snapshot pushes the current working tree state to a remote preflight ref. It always creates a distinct commit on top of HEAD (even when the worktree is clean) without touching the real git index.
func (SnapshotResult) ShortCommit ¶ added in v3.35.0
func (r SnapshotResult) ShortCommit() string
Click to show internal directories.
Click to hide internal directories.