Documentation
¶
Overview ¶
Package gitapply provides "git apply" feautre.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply applies the changes in f to src, writing the result to dst. It uses logic ported from Git's apply.c, supporting fuzz and context reduction.
Types ¶
type ApplyOptions ¶
type ApplyOptions struct {
// Reject allows applying a patch with rejects, writing failed hunks to a .rej file.
Reject bool
}
ApplyOptions defines options for patch application.
type RejectedError ¶
type RejectedError struct {
Indices []int
}
RejectedError indicates that some hunks of the patch were rejected.
func (*RejectedError) Error ¶
func (e *RejectedError) Error() string
Click to show internal directories.
Click to hide internal directories.