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

Method Start

pkg/commands/patch/patch_builder.go:60–66  ·  view source on GitHub ↗
(from, to string, reverse bool, canRebase bool)

Source from the content-addressed store, hash-verified

58}
59
60func (p *PatchBuilder) Start(from, to string, reverse bool, canRebase bool) {
61 p.To = to
62 p.From = from
63 p.reverse = reverse
64 p.CanRebase = canRebase
65 p.fileInfoMap = map[string]*fileInfo{}
66}
67
68func (p *PatchBuilder) PatchToApply(reverse bool, turnAddedFilesIntoDiffAgainstEmptyFile bool) string {
69 var patch strings.Builder

Callers 5

TestRenderCommitFileTreeFunction · 0.95
getCmdHandlerPtyMethod · 0.45
RunAndProcessLinesMethod · 0.45
getCmdHandlerNonPtyMethod · 0.45
PipeCommandsMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestRenderCommitFileTreeFunction · 0.76