diff

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder(diffEnabled bool) *Builder

func (*Builder) Add

func (b *Builder) Add(sourcePath, destPath string, sourceFS, destFS *os.Root, sourceFile, destFile string) error

func (*Builder) Bytes

func (b *Builder) Bytes() []byte

func (*Builder) IsEmpty

func (b *Builder) IsEmpty() bool

func (*Builder) String

func (b *Builder) String() string

type Patcher

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

func NewPatcher

func NewPatcher(diffBody string) (*Patcher, error)

func (*Patcher) Files

func (p *Patcher) Files() iter.Seq[*gitdiff.File]

Jump to

Keyboard shortcuts

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