Documentation ¶
Overview ¶
Package diff contains libraries for diffing packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedDiffTypes = []DiffType{DiffTypeLocal, DiffTypeRemote, DiffTypeCombined, DiffType3Way}
Functions ¶
func SupportedDiffTypesLabel ¶
func SupportedDiffTypesLabel() string
Types ¶
type Command ¶
type Command struct { // Path to the local package directory Path string // Ref is the target Ref in the upstream source package to compare against Ref string // DiffType specifies the type of changes to show DiffType DiffType // Difftool refers to diffing commandline tool for showing changes. DiffTool string // DiffToolOpts refers to the commandline options to for the diffing tool. DiffToolOpts string // When Debug is true, command will run with verbose logging and will not // cleanup the staged packages to assist with debugging. Debug bool // Output is an io.Writer where command will write the output of the // command. Output io.Writer // PkgDiffer specifies package differ PkgDiffer PkgDiffer // PkgGetter specifies packaging sourcing adapter PkgGetter PkgGetter }
Command shows changes in local package relative to upstream source pkg, changes in upstream source package between original and target version etc.
func (*Command) DefaultValues ¶
func (c *Command) DefaultValues()
DefaultValues sets up the default values for the command.
type DiffType ¶
type DiffType string
DiffType represents type of comparison to be performed.
const ( // DiffTypeLocal shows the changes in local pkg relative to upstream source pkg at original version DiffTypeLocal DiffType = "local" // DiffTypeRemote shows changes in the upstream source pkg between original and target version DiffTypeRemote DiffType = "remote" // DiffTypeCombined shows changes in local pkg relative to upstream source pkg at target version DiffTypeCombined DiffType = "combined" // 3way shows changes in local and remote changes side-by-side DiffType3Way DiffType = "3way" )
Click to show internal directories.
Click to hide internal directories.