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

Function NewPatchBuilder

pkg/commands/patch/patch_builder.go:53–58  ·  view source on GitHub ↗
(log *logrus.Entry, loadFileDiff loadFileDiffFunc)

Source from the content-addressed store, hash-verified

51}
52
53func NewPatchBuilder(log *logrus.Entry, loadFileDiff loadFileDiffFunc) *PatchBuilder {
54 return &PatchBuilder{
55 Log: log,
56 loadFileDiff: loadFileDiff,
57 }
58}
59
60func (p *PatchBuilder) Start(from, to string, reverse bool, canRebase bool) {
61 p.To = to

Callers 2

NewGitCommandAuxFunction · 0.92
TestRenderCommitFileTreeFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestRenderCommitFileTreeFunction · 0.74