Skip to content

Commit 91667c4

Browse files
committed
fixup! Add merge options menu
1 parent 9c5e2a2 commit 91667c4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pkg/config/app_config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ func computeMigratedConfig(path string, content []byte, changes *ChangesSet) ([]
272272
{[]string{"gui", "skipUnstageLineWarning"}, "skipDiscardChangeWarning"},
273273
{[]string{"keybinding", "universal", "executeCustomCommand"}, "executeShellCommand"},
274274
{[]string{"gui", "windowSize"}, "screenMode"},
275+
{[]string{"keybinding", "files", "openMergeTool"}, "openMergeOptions"},
275276
}
276277

277278
for _, pathToReplace := range pathsToReplace {

pkg/gui/controllers/files_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,11 +1029,11 @@ func (self *FilesController) createStashMenu() error {
10291029
func (self *FilesController) openMergeConflictMenu(nodes []*filetree.FileNode) error {
10301030
normalizedNodes := normalisedSelectedNodes(nodes)
10311031

1032-
fileNodes := lo.Filter(normalizedNodes, func(node *filetree.FileNode, _ int) bool {
1033-
return node.File != nil
1032+
fileNodesWithConflicts := lo.Filter(normalizedNodes, func(node *filetree.FileNode, _ int) bool {
1033+
return node.File != nil && node.File.HasInlineMergeConflicts
10341034
})
10351035

1036-
filepaths := lo.Map(fileNodes, func(node *filetree.FileNode, _ int) string {
1036+
filepaths := lo.Map(fileNodesWithConflicts, func(node *filetree.FileNode, _ int) string {
10371037
return node.GetPath()
10381038
})
10391039

0 commit comments

Comments
 (0)