gitredesign

package
v0.2.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TaskSchemaVersion = 2

TaskSchemaVersion is the task schema version that indicates the git redesign migration has been applied (best-effort) and can be skipped on subsequent runs.

v0.1.1 tasks commonly have schema=1 (schema1 history.jsonl). This migration upgrades them to schema=2 by backfilling missing git redesign fields.

Variables

This section is empty.

Functions

func Ensure

func Ensure(repoDir string) error

Ensure performs a best-effort, idempotent migration to support the git redesign: - Backfills missing base_commit in the most recent task.opened event. - Backfills frozen change stats in task.merged / task.closed events when missing.

It is safe to call multiple times; if tasks are already migrated it becomes a no-op.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL