Documentation
¶
Overview ¶
Package patch parses and applies the bounded, model-facing patch grammar used by the coding application. It performs no filesystem I/O.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalid means a patch does not conform to the supported grammar. ErrInvalid = errors.New("coding patch: invalid patch") // ErrConflict means an update hunk does not identify one exact location. ErrConflict = errors.New("coding patch: context conflict") // ErrBinary means a patch or target contains non-text content. ErrBinary = errors.New("coding patch: binary content") )
Functions ¶
Types ¶
type Limits ¶
type Limits struct {
Bytes int
Files int
// PlanPath, when non-empty, admits that exact absolute plan-file path as a
// patch target in addition to workspace-relative paths.
PlanPath string
// ResolvePath, when non-nil, normalizes an ordinary patch target. The tool
// layer uses it to accept an absolute path inside the workspace. A nil
// resolver keeps the package's historical workspace-relative-only grammar.
ResolvePath func(string) (string, error)
}
Limits bounds parser input and file operations.
Click to show internal directories.
Click to hide internal directories.