Skip to content

Commit deca5fa

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

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pkg/gui/controllers/helpers/working_tree_helper.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,17 +291,17 @@ func (self *WorkingTreeHelper) CreateMergeConflictMenu(selectedFilepaths []strin
291291
Items: []*types.MenuItem{
292292
{
293293
LabelColumns: []string{
294-
self.c.Tr.UseHead,
294+
self.c.Tr.UseCurrentChanges,
295295
cmdColor.Sprint("git merge-file --ours"),
296296
},
297297
OnPress: func() error {
298298
return onMergeStrategySelected("--ours")
299299
},
300-
Key: 'h',
300+
Key: 'c',
301301
},
302302
{
303303
LabelColumns: []string{
304-
self.c.Tr.UseIncoming,
304+
self.c.Tr.UseIncomingChanges,
305305
cmdColor.Sprint("git merge-file --theirs"),
306306
},
307307
OnPress: func() error {
@@ -311,7 +311,7 @@ func (self *WorkingTreeHelper) CreateMergeConflictMenu(selectedFilepaths []strin
311311
},
312312
{
313313
LabelColumns: []string{
314-
self.c.Tr.UseBoth,
314+
self.c.Tr.UseBothChanges,
315315
cmdColor.Sprint("git merge-file --union"),
316316
},
317317
OnPress: func() error {

pkg/i18n/english.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -901,9 +901,9 @@ type TranslationSet struct {
901901
ViewMergeConflictOptions string
902902
ViewMergeConflictOptionsTooltip string
903903
MergeConflictOptionsTitle string
904-
UseHead string
905-
UseIncoming string
906-
UseBoth string
904+
UseCurrentChanges string
905+
UseIncomingChanges string
906+
UseBothChanges string
907907
}
908908
type Bisect struct {
909909
MarkStart string
@@ -1978,9 +1978,9 @@ func EnglishTranslationSet() *TranslationSet {
19781978
ViewMergeConflictOptions: "View merge conflict options",
19791979
ViewMergeConflictOptionsTooltip: "View options for resolving merge conflicts.",
19801980
MergeConflictOptionsTitle: "Resolve merge conflicts",
1981-
UseHead: "Use current changes",
1982-
UseIncoming: "Use incoming changes",
1983-
UseBoth: "Use both",
1981+
UseCurrentChanges: "Use current changes",
1982+
UseIncomingChanges: "Use incoming changes",
1983+
UseBothChanges: "Use both",
19841984

19851985
Actions: Actions{
19861986
// TODO: combine this with the original keybinding descriptions (those are all in lowercase atm)

0 commit comments

Comments
 (0)