conflict

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Solve

func Solve(in io.Reader, out io.Writer, filePath string, fileA, fileB []byte) ([]byte, error)

Types

type ConflictResolution added in v1.14.0

type ConflictResolution int
const (
	UseOld ConflictResolution = iota
	UseNew
	UseDiffFile
)

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(filePath string, fileA, fileB []byte) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Result added in v1.0.0

func (m Model) Result() []byte

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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