diff

package
v0.3.0-pre5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

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(rep *repo.Repository, 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