# Functions
Apply is a convenience function that creates an Applier for src with default settings and applies the changes in f, writing the result to dst.
NewApplier creates an Applier that reads data from src.
Parse parses a patch with changes to one or more files.
ParsePatchDate parses a patch date string.
ParsePatchHeader parses a preamble string as returned by Parse into a PatchHeader.
ParsePatchIdentity parses a patch identity string.
# Constants
BinaryPatchDelta indicates the data uses Git's packfile encoding.
BinaryPatchLiteral indicates the data is the exact file content.
OpAdd indicates an added line.
OpContext indicates a context line.
OpDelete indicates a deleted line.
# Structs
Applier applies changes described in fragments to source data.
ApplyError wraps an error that occurs during patch application with additional location information, if it is available.
BinaryFragment describes changes to a binary file.
Conflict indicates an apply failed due to a conflict between the patch and the source content.
File describes changes to a single file.
Line is a line in a text fragment.
PatchHeader is a parsed version of the preamble content that appears before the first diff in a patch.
PatchIdentity identifies a person who authored or committed a patch.
TextFragment describes changed lines starting at a specific line in a text file.
# Interfaces
LineReaderAt is the interface that wraps the ReadLinesAt method.
# Type aliases
BinaryPatchMethod is the method used to create and apply the binary patch.
LineOp describes the type of a text fragment line: context, added, or removed.