gitconflict

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasConflicts

func HasConflicts(ctx context.Context, repoRoot string) bool

HasConflicts reports whether the repo has unmerged paths.

func ListFiles

func ListFiles(ctx context.Context, repoRoot string) ([]string, error)

ListFiles returns unmerged file paths in the repository.

Types

type File

type File struct {
	Path   string
	Module string
	Reason string
}

File describes one conflicted path.

type Snapshot

type Snapshot struct {
	Files   []File
	Groups  map[string][]string
	Summary string
}

Snapshot is a structured conflict report.

func BuildSnapshot

func BuildSnapshot(ctx context.Context, repoRoot string) (Snapshot, error)

BuildSnapshot creates a grouped conflict report.

func BuildSnapshotWithAI

func BuildSnapshotWithAI(ctx context.Context, repoRoot string, provider aiprovider.Provider, useAI bool) (Snapshot, error)

BuildSnapshotWithAI builds a snapshot and optionally enhances it with AI reasons.

func EnhanceSnapshot

func EnhanceSnapshot(ctx context.Context, snap Snapshot, provider aiprovider.Provider, repoRoot string) (Snapshot, error)

EnhanceSnapshot optionally replaces heuristic reasons with AI analysis.

Jump to

Keyboard shortcuts

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