1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00
This commit is contained in:
Jesse Duffield
2020-08-21 20:50:54 +10:00
parent 1956301b1c
commit 59f5f5c1af
6 changed files with 26 additions and 9 deletions

View File

@ -46,8 +46,9 @@ func NewPatchManager(log *logrus.Entry, applyPatch applyPatchFunc) *PatchManager
}
// NewPatchManager returns a new PatchManager
func (p *PatchManager) Start(parent string, diffMap map[string]string) {
func (p *PatchManager) Start(parent string, diffMap map[string]string, canRebase bool) {
p.Parent = parent
p.CanRebase = canRebase
p.fileInfoMap = map[string]*fileInfo{}
for filename, diff := range diffMap {
p.fileInfoMap[filename] = &fileInfo{