Artifact fc064f82d218b6276530412d51cb99d767667c94b5ba2c20ece365f079002fe4:
- File
internal/deck/deck.go
— part of check-in
[f5744359d3]
at
2026-04-19 16:30:54
on branch trunk
— Initial open source release
libfossil is a pure-Go implementation of the Fossil SCM, reading and writing the same .fossil SQLite repository format as upstream Fossil.
This is the first public release of code that previously lived in a private repository. The module path is github.com/danmestas/libfossil and the binary is named libfossil to avoid $PATH collisions with upstream fossil.
Included: - Repo lifecycle (create, clone), checkout/checkin, timeline, merge, diff, annotate, shun, tag, branch, bisect, stash, undo/redo - Sync-over-HTTP protocol (client and handler) - Two SQLite drivers: modernc (pure Go, default) and ncruces (wasm-capable) - Observer interfaces (SyncObserver, CheckoutObserver) with an optional OpenTelemetry implementation in observer/otel (separate submodule) - Deterministic simulation testing harness with BUGGIFY fault injection - Kong-based embeddable CLI under cli/ and a standalone binary under cmd/libfossil/ (user: [email protected], size: 1078) [annotate] [blame] [check-ins using]
package deck import "time" type ArtifactType int const ( Checkin ArtifactType = iota Wiki Ticket Event Cluster ForumPost Attachment Control ) type Deck struct { Type ArtifactType A *AttachmentCard B string C string D time.Time E *EventCard F []FileCard G string H string I string J []TicketField K string L string M []string N string P []string Q []CherryPick R string T []TagCard U string W []byte Z string } type FileCard struct { Name string UUID string Perm string OldName string } type TagCard struct { Type TagType Name string UUID string Value string } type TagType byte const ( TagSingleton TagType = '+' TagPropagating TagType = '*' TagCancel TagType = '-' ) type CherryPick struct { IsBackout bool Target string Baseline string } type AttachmentCard struct { Filename string Target string Source string } type EventCard struct { Date time.Time UUID string } type TicketField struct { Name string Value string }