diff

package
v0.0.0-...-cd20b3e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitRange

type CommitRange struct {
	Old        string `json:"old,omitempty"`
	New        string `json:"new,omitempty"`
	CompareURL string `json:"compare_url,omitempty"`
}

type FileDiff

type FileDiff struct {
	Path Path   `json:"path,omitempty"`
	URL  URL    `json:"url,omitempty"`
	Diff string `json:"diff,omitempty"`
}

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDiffAlg

func WithDiffAlg(diffAlg string) Option

func WithDir

func WithDir(dir string) Option

func WithFilter

func WithFilter(filter string) Option

func WithRemotePrefix

func WithRemotePrefix(remotePrefix string) Option

type Path

type Path struct {
	Old string `json:"old,omitempty"`
	New string `json:"new,omitempty"`
}

type Repository

type Repository struct {
	Commits CommitRange `json:"commit_range,omitempty"`
	Files   []FileDiff  `json:"files,omitempty"`
}

type URL

type URL struct {
	Old string `json:"old,omitempty"`
	New string `json:"new,omitempty"`
}

type WholeDiff

type WholeDiff struct {
	RootID    string                `json:"id,omitempty"`
	Extracted map[string]Repository `json:"extracted,omitempty"`
	Raw       map[string]Repository `json:"raw,omitempty"`
}

func Diff

func Diff(datasource, rootID, old, new string, opts ...Option) (WholeDiff, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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