Documentation ¶
Overview ¶
The patch package provides support for calculating and applying revlog patches
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hunk ¶
type Hunk struct {
// contains filtered or unexported fields
}
A hunk describes how a certain region of original data is to be modified.
type Joiner ¶
type Joiner struct {
// contains filtered or unexported fields
}
A Joiner is a patch buffer that is the target of usually many calls to its method JoinPatches.
func NewJoiner ¶
Creates a new Joiner. To avoid reallocations of the patch buffer as the patch grows, an initial size may be stated.
func (*Joiner) JoinPatches ¶
With ‘left’ and ‘right’ being patches of two adjacent revlog revisions, JoinPatches propagates hunk by hunk from the right to the left side, probably intersecting hunks one or more times. The resulting patch will be stored into the Joiner. Both right and left hunks may be altered.
Click to show internal directories.
Click to hide internal directories.