diff

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package diff is the Stage-1 namespace for diff sandbox, staging, preview, summariser, test selector, and 3-way merge. See ../REFACTOR_PLAN.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDependencyGraph

func BuildDependencyGraph(dir string) map[string][]string

func FormatConflictMarkers

func FormatConflictMarkers(c Diff3Conflict) string

func GenerateTestCommand

func GenerateTestCommand(s *SelectedTests, lang string) string

func LCS

func LCS(a, b []string) []string

func MergeClean

func MergeClean(base, ours, theirs string) (string, bool)

func RenderUnified

func RenderUnified(change *FileChange) string

Types

type ChangeStats

type ChangeStats = engine.ChangeStats

type Diff3Conflict

type Diff3Conflict = engine.Diff3Conflict

type Diff3Region

type Diff3Region = engine.Diff3Region

type Diff3Result

type Diff3Result = engine.Diff3Result

func Merge3

func Merge3(base, ours, theirs string) *Diff3Result

type Diff3Stats

type Diff3Stats = engine.Diff3Stats

type DiffSandbox

type DiffSandbox = engine.DiffSandbox

func NewDiffSandbox

func NewDiffSandbox() *DiffSandbox

type Edit

type Edit = engine.Edit

func EditScript

func EditScript(from, to []string) []Edit

type FileChange

type FileChange = engine.FileChange

type FileSummary

type FileSummary = engine.FileSummary

type Hunk

type Hunk = engine.DiffHunk

func ComputeDiff

func ComputeDiff(old, new string) []Hunk

type Line

type Line = engine.DiffLine

func ComputeMyersDiff

func ComputeMyersDiff(a, b []string) []Line

type PendingChange

type PendingChange = engine.PendingChange

type Preview

type Preview = engine.DiffPreview

func NewDiffPreview

func NewDiffPreview() *Preview

type SelectedTests

type SelectedTests = engine.SelectedTests

type StagedChange

type StagedChange = engine.StagedChange

type StagedHunk

type StagedHunk = engine.StagedHunk

type StagingArea

type StagingArea = engine.StagingArea

func NewStagingArea

func NewStagingArea() *StagingArea

type Summarizer

type Summarizer = engine.DiffSummarizer

func NewSummarizer

func NewSummarizer() *Summarizer

type Summary

type Summary = engine.DiffSummary

type TestSelector

type TestSelector = engine.TestSelector

func NewTestSelector

func NewTestSelector(projectDir string) *TestSelector

Jump to

Keyboard shortcuts

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