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

Method AddFileLineRange

pkg/commands/patch/patch_builder.go:147–156  ·  view source on GitHub ↗
(filename string, lineIndices []int)

Source from the content-addressed store, hash-verified

145}
146
147func (p *PatchBuilder) AddFileLineRange(filename string, lineIndices []int) error {
148 info, err := p.getFileInfo(filename)
149 if err != nil {
150 return err
151 }
152 info.mode = PART
153 info.includedLineIndices = lo.Union(info.includedLineIndices, lineIndices)
154
155 return nil
156}
157
158func (p *PatchBuilder) RemoveFileLineRange(filename string, lineIndices []int) error {
159 info, err := p.getFileInfo(filename)

Callers

nothing calls this directly

Calls 1

getFileInfoMethod · 0.95

Tested by

no test coverage detected