branchlock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package branchlock detects branch state that should block unsafe edits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collision

type Collision struct {
	Branch  string   `json:"branch"`
	Module  string   `json:"module"`
	LaneIDs []string `json:"lane_ids"`
}

func DetectCollisions

func DetectCollisions(intents []Intent) []Collision

type Intent

type Intent struct {
	LaneID   string   `json:"lane_id"`
	Branch   string   `json:"branch"`
	Worktree string   `json:"worktree,omitempty"`
	Modules  []string `json:"modules,omitempty"`
}

func Decode

func Decode(data []byte) ([]Intent, error)

func NormalizeIntent

func NormalizeIntent(intent Intent, index int) Intent

func NormalizeIntents

func NormalizeIntents(intents []Intent) []Intent

func (*Intent) UnmarshalJSON

func (i *Intent) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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