MCPcopy
hub / github.com/jesseduffield/lazygit / Transform

Method Transform

pkg/commands/patch/patch.go:21–23  ·  view source on GitHub ↗

Returns a new patch with the specified transformation applied (e.g. only selecting a subset of changes). Leaves the original patch unchanged.

(opts TransformOpts)

Source from the content-addressed store, hash-verified

19// only selecting a subset of changes).
20// Leaves the original patch unchanged.
21func (self *Patch) Transform(opts TransformOpts) *Patch {
22 return transform(self, opts)
23}
24
25// Returns the patch as a plain string
26func (self *Patch) FormatPlain() string {

Callers 4

TestTransformFunction · 0.80
RenderPatchForFileMethod · 0.80
applySelectionMethod · 0.80
editHunkMethod · 0.80

Calls 1

transformFunction · 0.85

Tested by 1

TestTransformFunction · 0.64