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

Method RemoveFile

pkg/commands/patch/patch_builder.go:116–125  ·  view source on GitHub ↗
(filename string)

Source from the content-addressed store, hash-verified

114}
115
116func (p *PatchBuilder) RemoveFile(filename string) error {
117 info, err := p.getFileInfo(filename)
118 if err != nil {
119 return err
120 }
121
122 p.removeFile(info)
123
124 return nil
125}
126
127func (p *PatchBuilder) getFileInfo(filename string) (*fileInfo, error) {
128 info, ok := p.fileInfoMap[filename]

Callers

nothing calls this directly

Calls 2

getFileInfoMethod · 0.95
removeFileMethod · 0.95

Tested by

no test coverage detected