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

Method FormatView

pkg/commands/patch/patch.go:36–38  ·  view source on GitHub ↗

Returns the patch as a string with ANSI color codes for displaying in a view

(opts FormatViewOpts)

Source from the content-addressed store, hash-verified

34
35// Returns the patch as a string with ANSI color codes for displaying in a view
36func (self *Patch) FormatView(opts FormatViewOpts) string {
37 return formatView(self, opts)
38}
39
40// Returns the lines of the patch
41func (self *Patch) Lines() []*PatchLine {

Callers 2

RenderPatchForFileMethod · 0.80
RenderForLineIndicesMethod · 0.80

Calls 1

formatViewFunction · 0.85

Tested by

no test coverage detected