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

Method GetFileStatus

pkg/commands/patch/patch_builder.go:234–245  ·  view source on GitHub ↗
(filename string, parent string)

Source from the content-addressed store, hash-verified

232}
233
234func (p *PatchBuilder) GetFileStatus(filename string, parent string) PatchStatus {
235 if parent != p.To {
236 return UNSELECTED
237 }
238
239 info, ok := p.fileInfoMap[filename]
240 if !ok {
241 return UNSELECTED
242 }
243
244 return info.mode
245}
246
247func (p *PatchBuilder) GetFileIncLineIndices(filename string) ([]int, error) {
248 info, err := p.getFileInfo(filename)

Callers 2

toggleForPatchMethod · 0.80
commitFilePatchStatusFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected