RelayWorktreeSnapshot class

What worktree.read returns: the session worktree's per-path modified times plus its last commit and when that commit landed.

Constructors

RelayWorktreeSnapshot({required Map<String, DateTime> mtimes, required String lastCommit, required DateTime lastCommitAt})
Creates the snapshot; mtimes is copied defensively.

Properties

hashCode → int
The hash code for this object.
no setterinherited
lastCommit → String
The worktree's last commit (subject or sha — whatever the reader vends).
final
lastCommitAt → DateTime
When that last commit landed.
final
mtimes → Map<String, DateTime>
Modified time per worktree-relative path. Unmodifiable.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
This snapshot as the brief's canonical evidence object. Paths are sorted lexically so the same worktree renders the same JSON every time.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited