diff

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package diff implements helpers for comparing two filesystems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comparer

type Comparer struct {
	DiffCommand   string
	DiffArguments []string
	// contains filtered or unexported fields
}

Comparer outputs diff information between two filesystems.

func NewComparer

func NewComparer(out io.Writer) (*Comparer, error)

NewComparer creates a comparer for a given repository that will output the results to a given writer.

func (*Comparer) Close

func (c *Comparer) Close() error

Close removes all temporary files used by the comparer.

func (*Comparer) Compare

func (c *Comparer) Compare(ctx context.Context, e1, e2 fs.Entry) error

Compare compares two filesystem entries and emits their diff information.

Jump to

Keyboard shortcuts

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