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

Method AddFileWhole

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

Source from the content-addressed store, hash-verified

103}
104
105func (p *PatchBuilder) AddFileWhole(filename string) error {
106 info, err := p.getFileInfo(filename)
107 if err != nil {
108 return err
109 }
110
111 p.addFileWhole(info)
112
113 return nil
114}
115
116func (p *PatchBuilder) RemoveFile(filename string) error {
117 info, err := p.getFileInfo(filename)

Callers

nothing calls this directly

Calls 2

getFileInfoMethod · 0.95
addFileWholeMethod · 0.95

Tested by

no test coverage detected