Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Unified bool `flag:"" desc:"Use unified diff format"`
LabelOld string `flag:"" desc:"Label for old file in diff"`
LabelNew string `flag:"" desc:"Label for new file in diff"`
Recursive bool `flag:"" desc:"Compare directories recursively"`
IgnoreAllSpace bool `flag:"" desc:"Ignore all whitespace changes"`
Quiet bool `flag:"" desc:"Output only whether files differ"`
Context int `flag:"" desc:"Number of context lines"`
XML bool
JSON bool
Plain bool
Pretty bool
}
type DiffResult ¶
type DiffResult struct {
XMLName xml.Name `xml:"diff"`
OldFile string `xml:"old_file,attr"`
NewFile string `xml:"new_file,attr"`
OldLabel string `xml:"old_label,attr,omitempty"`
NewLabel string `xml:"new_label,attr,omitempty"`
AddedLines int `xml:"added_lines,attr"`
RemovedLines int `xml:"removed_lines,attr"`
ChangedHunks int `xml:"changed_hunks,attr"`
Identical bool `xml:"identical,attr"`
Timestamp int64 `xml:"timestamp,attr"`
Hunks []DiffHunk `xml:"hunk"`
Errors []DiffError `xml:"error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.