Documentation
¶
Overview ¶
Package patch provides functionality for generating patches from selections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate( parsed *diff.ParsedDiff, selections []*diff.FileSelection, ) ([]byte, error)
Generate creates a patch containing only the selected lines. The patch can be applied with `git apply --cached`.
func GenerateForFile ¶
GenerateForFile creates a patch for a single file with all its changes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.