MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / formatLine

Method formatLine

pkg/commands/patch/format.go:122–126  ·  view source on GitHub ↗
(str string, textStyle style.TextStyle, index int)

Source from the content-addressed store, hash-verified

120}
121
122func (self *patchPresenter) formatLine(str string, textStyle style.TextStyle, index int) string {
123 included := self.incLineIndices.Includes(index)
124
125 return self.formatLineAux(str, textStyle, included)
126}
127
128// 'selected' means you've got it highlighted with your cursor
129// 'included' means the line has been included in the patch (only applicable when

Callers 1

formatMethod · 0.95

Calls 1

formatLineAuxMethod · 0.95

Tested by

no test coverage detected