package
6.0.0-20220823060123-ee3621dd571c
Repository: https://github.com/accel-byte/go-git.git
Documentation: pkg.go.dev
# Functions
NewColorConfig returns a new ColorConfig.
NewUnifiedEncoder returns a new UnifiedEncoder that writes to w.
WithColor sets the color for key.
# Constants
Add item represents an insert diff.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
DefaultContextLines is the default number of context lines.
Delete item represents a delete diff.
Equal item represents a equals diff.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
ColorKeys.
# Structs
UnifiedEncoder encodes an unified diff into the provided Writer.
# Interfaces
Chunk represents a portion of a file transformation to another.
File contains all the file metadata necessary to print some patch formats.
FilePatch represents the necessary steps to transform one file to another.
Patch represents a collection of steps to transform several files.
# Type aliases
A ColorConfig is a color configuration.
A ColorConfigOption sets an option on a ColorConfig.
A ColorKey is a key into a ColorConfig map and also equal to the key in the diff.color subsection of the config.
Operation defines the operation of a diff item.